mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
cb473bf6ff
a global attribute whose type is an enum. Turns out this case fails because of an oversight in ncgen. This pr fixes that problem (in semantics.c). Also added test case .cdl file: tst_gattenum.cdl
9 lines
238 B
Plaintext
9 lines
238 B
Plaintext
netcdf tst_gattenum {
|
|
types:
|
|
ubyte enum Bradys {Mike = 0, Carol = 1, Greg = 2, Marsha = 3, Peter = 4,
|
|
Jan = 5, Bobby = 6, Whats-her-face = 7, Alice = 8} ;
|
|
|
|
// global attributes:
|
|
Bradys :brady_attribute = Mike, Marsha, Alice;
|
|
}
|