diff --git a/test/small1/attr-enumerator.c b/test/small1/attr-enumerator.c new file mode 100755 index 000000000..2c8f55ecd --- /dev/null +++ b/test/small1/attr-enumerator.c @@ -0,0 +1,8 @@ +// From some new MacOS headers + +enum { + A, + B __attribute__((availability(macos,introduced=10.15))), + C = 5, + D __attribute__((availability(macos,introduced=10.15))) = 7 +} E; diff --git a/test/testcil.pl b/test/testcil.pl index 64c8c1a97..db75b5b4c 100644 --- a/test/testcil.pl +++ b/test/testcil.pl @@ -223,6 +223,7 @@ sub addToGroup { addTest("test/attr12 _GNUCC=1"); addTest("test/attr13 _GNUCC=1"); # addTest("test/attr-assign"); # TODO: only on OSX, Linux GCC errors on introduced +# addTest("test/attr-enumerator"); # TODO: only on OSX, Linux GCC errors on introduced addTest("testrun/packed _GNUCC=1 WARNINGS_ARE_ERRORS=1"); addTest("test/packed2 _GNUCC=1"); addTest("test/bitfield");