netcdf-c/ncdump/ref_tst_radix.cdl
Dennis Heimbigner 98caf87116 Fix ncgen handling of octal constants (with leading 0).
re: https://github.com/Unidata/netcdf-c/issues/1330

The ncgen utility is documented to accept octal integer constants
if the leading digit is zero. This was not implemented. Fix ncgen.l
to properly handle such constants. Also add a test to c0.cdl.
2019-02-25 20:57:23 -07:00

20 lines
222 B
Plaintext

netcdf tst_radix {
dimensions:
d = 2 ;
variables:
byte b(d);
short s(d);
int i(d);
// global attributes:
:attr1 = 83s ;
:attr2 = 83b ;
data:
b = -128, 127 ;
s = _, 32766 ;
i = -2147483646, 2147483647 ;
}