]> granicus.if.org Git - clang/commitdiff
Make test/CodeGen/atomic-ops.c free-standing
authorHal Finkel <hfinkel@anl.gov>
Fri, 3 Oct 2014 05:04:49 +0000 (05:04 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 3 Oct 2014 05:04:49 +0000 (05:04 +0000)
This test includes stdint.h (via stdatomic.h), which might include system
headers (and that might not work, depending on the system configuration).
Attempting to fix llvm-clang-lld-x86_64-debian-fast.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218960 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/atomic-ops.c

index b146eee532bf0ad6d4f954ecc7269acab01ee98f..7bc45b6135ca35d434f672859e748b72a754e685 100644 (file)
@@ -1,9 +1,9 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -ffreestanding -triple=i686-apple-darwin9 | FileCheck %s
 
 // Also test serialization of atomic operations here, to avoid duplicating the
 // test.
-// RUN: %clang_cc1 %s -emit-pch -o %t -triple=i686-apple-darwin9
-// RUN: %clang_cc1 %s -include-pch %t -triple=i686-apple-darwin9 -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-pch -o %t -ffreestanding -triple=i686-apple-darwin9
+// RUN: %clang_cc1 %s -include-pch %t -ffreestanding -triple=i686-apple-darwin9 -emit-llvm -o - | FileCheck %s
 #ifndef ALREADY_INCLUDED
 #define ALREADY_INCLUDED