mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
72d6894b80
re: Issue https://github.com/Unidata/netcdf-c/issues/2108 Fix ncgen to properly locate a matching enum type when it encounters a reference to an enum constant. Add test cases.
14 lines
225 B
Plaintext
14 lines
225 B
Plaintext
netcdf ref_tst_econst {
|
|
types:
|
|
byte enum e1{pass=0, fail=1, undefined=2};
|
|
byte enum e2{defined=0, undefined=1};
|
|
variables:
|
|
e1 test1;
|
|
e2 test2;
|
|
e1 test3;
|
|
data:
|
|
test1=pass;
|
|
test2=e2.undefined;
|
|
test3=e1.fail;
|
|
}
|