diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-21 02:50:38 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-21 02:50:38 +0000 |
commit | 98ab776a8a9e19c7bf1bd04d610ec2b2c37aef7a (patch) | |
tree | 1e6f4eceb16367d0a2b5dff24f15563d3864179c /test/CodeGenCXX/cxx0x-initializer-array.cpp | |
parent | f1e5b155088203f88a8172aa61c1d84185966bf0 (diff) |
Revert r170806, "Fix some bugs where we would sometimes use 0, not -1, when emitting a null constant of type pointer-to-data-member."
It broke stage2.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/cxx0x-initializer-array.cpp')
-rw-r--r-- | test/CodeGenCXX/cxx0x-initializer-array.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/CodeGenCXX/cxx0x-initializer-array.cpp b/test/CodeGenCXX/cxx0x-initializer-array.cpp index 5e81ba1ff9..df689978a8 100644 --- a/test/CodeGenCXX/cxx0x-initializer-array.cpp +++ b/test/CodeGenCXX/cxx0x-initializer-array.cpp @@ -1,7 +1,5 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -S -emit-llvm -o - %s | FileCheck %s -// CHECK: @[[THREE_NULL_MEMPTRS:.*]] = private constant [3 x i32] [i32 -1, i32 -1, i32 -1] - struct A { int a[1]; }; typedef A x[]; int f() { @@ -9,42 +7,4 @@ int f() { // CHECK: define i32 @_Z1fv // CHECK: store i32 1 // (It's okay if the output changes here, as long as we don't crash.) - return 0; -} - -namespace ValueInitArrayOfMemPtr { - struct S {}; - typedef int (S::*p); - typedef p a[3]; - void f(const a &); - - struct Agg1 { - int n; - p x; - }; - - struct Agg2 { - int n; - a x; - }; - - struct S1 { - p x; - S1(); - }; - - // CHECK: define void @_ZN22ValueInitArrayOfMemPtr1fEi - void f(int n) { - Agg1 a = { n }; - // CHECK: store i32 -1, - - Agg2 b = { n }; - // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* bitcast ([3 x i32]* @[[THREE_NULL_MEMPTRS]] to i8*), i32 12, i32 4, i1 false) - } - - // CHECK: define void @_ZN22ValueInitArrayOfMemPtr1gEv - void g() { - // CHECK: store i32 -1, - f(a{}); - } } |