Skip to content

Commit 2808f05

Browse files
committed
Update test case for bots which don't default to C17
1 parent b70d130 commit 2808f05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/C/C2y/n3341.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
// expected-no-diagnostics
1111

1212
struct R {}; // gnu-warning {{empty struct is a GNU extension}}
13+
#if __STDC_VERSION__ >= 201112L
1314
struct S { struct { }; }; // gnu-warning {{empty struct is a GNU extension}}
15+
#endif
1416
struct T { int : 0; }; // gnu-warning {{struct without named members is a GNU extension}}
1517
union U {}; // gnu-warning {{empty union is a GNU extension}}
1618

0 commit comments

Comments
 (0)