diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-11-14 01:10:38 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-11-14 01:10:38 +0000 |
commit | 5e4ed93a8db34b56d4bc14f73bf72653a7ce6e82 (patch) | |
tree | 1a4219a9264f7a8ff9fdec54be02db543d649039 /test/CodeGenCXX/pointers-to-data-members.cpp | |
parent | fd0b0894090f6b4f01f778346ab3e8af86d6aced (diff) |
Make some tests LLVM-optimization agnostic and remove some others that were beyond value/repair
Several of these tests (the two deleted, and the one removal edit) were
relying on the optimizer to collapse things to test some frontend
feature. The tests were really old and features seemed amply covered by
other parts of the test suite, so I just removed them.
If anyone thinks they're valuable enough to keep/fix, we can play around
with that, for sure.
(inspired by r252872)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/pointers-to-data-members.cpp')
-rw-r--r-- | test/CodeGenCXX/pointers-to-data-members.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/CodeGenCXX/pointers-to-data-members.cpp b/test/CodeGenCXX/pointers-to-data-members.cpp index 240d74084a..fd1b9b8215 100644 --- a/test/CodeGenCXX/pointers-to-data-members.cpp +++ b/test/CodeGenCXX/pointers-to-data-members.cpp @@ -1,8 +1,6 @@ // RUN: %clang_cc1 %s -emit-llvm -o %t.ll -triple=x86_64-apple-darwin10 // RUN: FileCheck %s < %t.ll // RUN: FileCheck -check-prefix=CHECK-GLOBAL %s < %t.ll -// RUN: %clang_cc1 %s -emit-llvm -o %t-opt.ll -triple=x86_64-apple-darwin10 -O3 -// RUN: FileCheck --check-prefix=CHECK-O3 %s < %t-opt.ll struct A { int a; int b; }; struct B { int b; }; @@ -131,40 +129,6 @@ A::A() : a() {} } -namespace PR7139 { - -struct pair { - int first; - int second; -}; - -typedef int pair::*ptr_to_member_type; - -struct ptr_to_member_struct { - ptr_to_member_type data; - int i; -}; - -struct A { - ptr_to_member_struct a; - - A() : a() {} -}; - -// CHECK-O3: define zeroext i1 @_ZN6PR71395checkEv() [[NUW:#[0-9]+]] -bool check() { - // CHECK-O3: ret i1 true - return A().a.data == 0; -} - -// CHECK-O3: define zeroext i1 @_ZN6PR71396check2Ev() [[NUW]] -bool check2() { - // CHECK-O3: ret i1 true - return ptr_to_member_type() == 0; -} - -} - namespace VirtualBases { struct A { @@ -294,5 +258,3 @@ union U { U u; // CHECK-GLOBAL: @_ZN11IndirectPDM1uE = global %"union.IndirectPDM::U" { %union.anon { i64 -1 } }, align 8 } - -// CHECK-O3: attributes [[NUW]] = { norecurse nounwind readnone{{.*}} } |