[clang] 7c52d0c - [clang][Interp] Try to atomic.c on Mac

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 26 06:08:16 PST 2024


Author: Timm Bäder
Date: 2024-02-26T15:07:58+01:00
New Revision: 7c52d0c98187b55d2f513122c21daf49d88169a6

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

LOG: [clang][Interp] Try to atomic.c on Mac

This test was broken on MacOS, see the discussion in
https://github.com/llvm/llvm-project/commit/a35599b9ae5e7ad924b78c65f6348e0b711bad5d

Added: 
    

Modified: 
    clang/test/AST/Interp/atomic.c

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/atomic.c b/clang/test/AST/Interp/atomic.c
index 316e8d5bf35167..c5fd9ab2229341 100644
--- a/clang/test/AST/Interp/atomic.c
+++ b/clang/test/AST/Interp/atomic.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fgnuc-version=4.2.1 -fexperimental-new-constant-interpreter -verify=both,expected %s
-// RUN: %clang_cc1 -fgnuc-version=4.2.1 -verify=both,ref %s
+// RUN: %clang_cc1 -fgnuc-version=4.2.1 -triple=i686-linux-gnu -ffreestanding -fexperimental-new-constant-interpreter -verify=both,expected %s
+// RUN: %clang_cc1 -fgnuc-version=4.2.1 -triple=i686-linux-gnu -ffreestanding -verify=both,ref %s
 
 /// FIXME: Copied from test/Sema/atomic-expr.c.
 /// this expression seems to be rejected for weird reasons,


        


More information about the cfe-commits mailing list