netcdf-c/ncdump/expected/ref_const_test.dmp
dmh 7e582ad3f2 re: Jira NCF-309
The code for handling character constants
in datalists in ncgen has some problems.
1. It failed on large constants
2. It did not handle e.g. var = 'a', 'b', ...
   in the same way that ncgen3 did.
3. The code for generate.c and genchar.c needed
   some refactoring to make it a little simpler
   (but not simple).
2014-09-18 18:26:06 -06:00

41 lines
681 B
Plaintext

netcdf ref_const_test {
dimensions:
d3 = 3 ;
d4 = 4 ;
variables:
char charv ;
byte int8v(d4) ;
short int16v(d3) ;
int int32v(d3) ;
int64 int64v(d3) ;
ubyte uint8v(d4) ;
ushort uint16v(d3) ;
uint uint32v(d3) ;
uint64 uint64v(d3) ;
float floatv ;
double doublev ;
data:
charv = "a" ;
int8v = -5, 5, -81, 97 ;
int16v = -2000, 32767, -21555 ;
int32v = -200000, 256000, 180148924 ;
int64v = -200000000000, 51200000000, -6067004223159161907 ;
uint8v = 251, 5, 175, 97 ;
uint16v = 63536, _, 43981 ;
uint32v = 4294767296, 256000, 180148924 ;
uint64v = 18446743873709551616, 51200000000, 12379739850550389709 ;
floatv = 516 ;
doublev = -77777777.8888 ;
}