[clang] f756d38 - Fix failing test bot

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 8 08:35:21 PST 2024


Author: Aaron Ballman
Date: 2024-11-08T11:34:50-05:00
New Revision: f756d38abf2ec40ee06ee5aa668db444e5d6f485

URL: https://github.com/llvm/llvm-project/commit/f756d38abf2ec40ee06ee5aa668db444e5d6f485
DIFF: https://github.com/llvm/llvm-project/commit/f756d38abf2ec40ee06ee5aa668db444e5d6f485.diff

LOG: Fix failing test bot

Fixes the issue found by:
https://lab.llvm.org/buildbot/#/builders/144/builds/11191

Added: 
    

Modified: 
    clang/test/C/C2y/n3342.c

Removed: 
    


################################################################################
diff  --git a/clang/test/C/C2y/n3342.c b/clang/test/C/C2y/n3342.c
index 3c5282c7831f32..9df939c60e335d 100644
--- a/clang/test/C/C2y/n3342.c
+++ b/clang/test/C/C2y/n3342.c
@@ -23,7 +23,9 @@ const volatile f three; /* expected-warning {{'const' qualifier on function type
                            clang-warning {{'volatile' qualifier on function type 'f' (aka 'int (void)') has no effect and is a Clang extension}}
                          */
 
+#if __STDC_VERSION__ >= 201112L
 // Atomic types have an explicit constraint making it ill-formed.
 _Atomic f four;   // both-error {{_Atomic cannot be applied to function type 'f' (aka 'int (void)')}}
+#endif
 
 // There's no point to testing 'restrict' because that requires a pointer type.


        


More information about the cfe-commits mailing list