We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4027400 commit f756d38Copy full SHA for f756d38
clang/test/C/C2y/n3342.c
@@ -23,7 +23,9 @@ const volatile f three; /* expected-warning {{'const' qualifier on function type
23
clang-warning {{'volatile' qualifier on function type 'f' (aka 'int (void)') has no effect and is a Clang extension}}
24
*/
25
26
+#if __STDC_VERSION__ >= 201112L
27
// Atomic types have an explicit constraint making it ill-formed.
28
_Atomic f four; // both-error {{_Atomic cannot be applied to function type 'f' (aka 'int (void)')}}
29
+#endif
30
31
// There's no point to testing 'restrict' because that requires a pointer type.
0 commit comments