blob: 17c5b62a3acf0ca2db7d71a363d313f6445b612b [file] [log] [blame]
David Chisnall28397be2012-04-11 15:29:15 +00001// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | FileCheck %s
2struct A {
3 _Atomic(int) i;
4 A(int j);
5 void v(int j);
6};
7// Storing to atomic values should be atomic
8// CHECK: store atomic i32
9void A::v(int j) { i = j; }
10// Initialising atomic values should not be atomic
11// CHECK-NOT: store atomic
12A::A(int j) : i(j) {}