diff options
Diffstat (limited to 'test/CodeGen/atomic_init.c')
-rw-r--r-- | test/CodeGen/atomic_init.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/CodeGen/atomic_init.c b/test/CodeGen/atomic_init.c deleted file mode 100644 index 6f773bef48..0000000000 --- a/test/CodeGen/atomic_init.c +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s - -// Check that no atomic operations are used in any initialisation of _Atomic -// types. - -_Atomic(int) i = 42; - -void foo() -{ - _Atomic(int) j = 12; // CHECK: store - // CHECK-NOT: atomic - __c11_atomic_init(&j, 42); // CHECK: store - // CHECK-NOT: atomic -} |