diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-10 22:49:28 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-10 22:49:28 +0000 |
commit | aa22a8cdcffc4aead057bb1d72e24c8a831a4389 (patch) | |
tree | dbcd6f948f92cdaa9c10b66a171012d5ca9690bf /clang/test/CodeGen/atomic-ops.c | |
parent | 6f1ee1634de281879261f5c8f79b2ba2ec8a6d3c (diff) | |
download | bcm5719-llvm-aa22a8cdcffc4aead057bb1d72e24c8a831a4389.tar.gz bcm5719-llvm-aa22a8cdcffc4aead057bb1d72e24c8a831a4389.zip |
AtomicExpr: make ASTStmtReader a friend and remove setters. Also fix saving
of an uninitialized Stmt* in serialization of __atomic_init and add a test of
atomics serialization.
llvm-svn: 154448
Diffstat (limited to 'clang/test/CodeGen/atomic-ops.c')
-rw-r--r-- | clang/test/CodeGen/atomic-ops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/atomic-ops.c b/clang/test/CodeGen/atomic-ops.c index 81406347735..2285cca7235 100644 --- a/clang/test/CodeGen/atomic-ops.c +++ b/clang/test/CodeGen/atomic-ops.c @@ -1,5 +1,12 @@ // RUN: %clang_cc1 %s -emit-llvm -o - -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 +#ifndef ALREADY_INCLUDED +#define ALREADY_INCLUDED + // Basic IRGen tests for __atomic_* // FIXME: Need to implement __atomic_is_lock_free @@ -117,3 +124,5 @@ int structAtomicCmpExchange() { return __atomic_compare_exchange_strong(&bigAtomic, &f, g, 5, 5); // CHECK: call zeroext i1 @__atomic_compare_exchange(i32 512, i8* bitcast (%struct.foo* @bigAtomic to i8*), } + +#endif |