blob: f90b8073390550bd7559b9bc2c99d55aa6d5ff50 [file] [log] [blame]
Anders Carlsson589f9e32009-11-07 23:16:50 +00001// RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
2
3// PR5392
4namespace PR5392 {
5struct A
6{
7 static int a;
8};
9
10A a1;
11void f()
12{
13 // CHECK: store i32 10, i32* @_ZN6PR53921A1aE
14 a1.a = 10;
15 // CHECK: store i32 20, i32* @_ZN6PR53921A1aE
16 A().a = 20;
17}
18
19}