Skip to content

Commit

Permalink
Add test for enumerator attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Aug 2, 2024
1 parent 317e26d commit f3f2177
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/small1/attr-enumerator.c
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions test/testcil.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f3f2177

Please sign in to comment.