Skip to content

Commit f756d38

Browse files
committed
Fix failing test bot
Fixes the issue found by: https://lab.llvm.org/buildbot/#/builders/144/builds/11191
1 parent 4027400 commit f756d38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/C/C2y/n3342.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const volatile f three; /* expected-warning {{'const' qualifier on function type
2323
clang-warning {{'volatile' qualifier on function type 'f' (aka 'int (void)') has no effect and is a Clang extension}}
2424
*/
2525

26+
#if __STDC_VERSION__ >= 201112L
2627
// Atomic types have an explicit constraint making it ill-formed.
2728
_Atomic f four; // both-error {{_Atomic cannot be applied to function type 'f' (aka 'int (void)')}}
29+
#endif
2830

2931
// There's no point to testing 'restrict' because that requires a pointer type.

0 commit comments

Comments
 (0)