netcdf-c/ncdump/cdl/ref_tst_econst.cdl
Dennis Heimbigner 72d6894b80 Fix handling of enum constants nested in compound types.
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.
2021-09-12 18:03:57 -06:00

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;
}