diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-23 00:02:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-23 00:02:11 +0000 |
commit | d1a9bac24466831e089c8f330ec9264fb3ace367 (patch) | |
tree | 2c86ae5ede6995ed324e60f64838126f4c0bba5a /test/CodeGenCXX/member-pointers-zero-init.cpp | |
parent | 0086ccb1985f392ac688a19b35b300610db102e8 (diff) |
Handle CK_NullToMemberPointer casts in the constant expr emitter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/member-pointers-zero-init.cpp')
-rw-r--r-- | test/CodeGenCXX/member-pointers-zero-init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGenCXX/member-pointers-zero-init.cpp b/test/CodeGenCXX/member-pointers-zero-init.cpp index db7c71a0d4..c0b76f3d5a 100644 --- a/test/CodeGenCXX/member-pointers-zero-init.cpp +++ b/test/CodeGenCXX/member-pointers-zero-init.cpp @@ -7,12 +7,15 @@ struct A { // RUN: grep "@a = global i64 -1" %t && int A::* a; -// RUN: grep "@aa = global \[2 x i64\] \[i64 -1, i64 -1\], align 8" %t && +// 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 "%.obool = icmp ne i64 %.mp, -1" %t if (a) { } |