mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
98caf87116
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.
20 lines
240 B
Plaintext
20 lines
240 B
Plaintext
netcdf tst_radix {
|
|
dimensions:
|
|
d = 2 ;
|
|
variables:
|
|
byte b(d);
|
|
short s(d);
|
|
int i(d);
|
|
|
|
// global attributes:
|
|
:attr1 = 0123s ;
|
|
:attr2 = '\123' ;
|
|
data:
|
|
|
|
b = -0200, 0177 ;
|
|
|
|
s = -077777, 077776 ;
|
|
|
|
i = -017777777776, 017777777777 ;
|
|
}
|