blob: d533600b54dbd5cf4146b59ebe5c1ed49376abdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 &&
struct A {
int i;
};
// RUN: grep "@a = global i64 -1" %t &&
int A::* a;
// RUN: grep "@aa = global \[2 x i64\] \[i64 -1, i64 -1\]" %t &&
int A::* aa[2];
// RUN: grep "@aaa = global \[2 x \[2 x i64\]\] \[\[2 x i64\] \[i64 -1, i64 -1\], \[2 x i64\] \[i64 -1, i64 -1\]\]" %t &&
int A::* aaa[2][2];
// RUN: grep "@b = global i64 -1" %t &&
int A::* b = 0;
void f() {
// RUN: grep "%.* = icmp ne i64 %.*, -1" %t
if (a) { }
// FIXME: This doesn't yet work
// if (a != 0) { }
}
|