summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/scope-check.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-27 03:06:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-27 03:06:02 +0000
commit8c0739d3324775b83e66272bcaec303a28f6b444 (patch)
treefc8f4b05a41faba23107467e84d72c329c6df157 /clang/test/SemaCXX/scope-check.cpp
parent3793976376acc29c0b302c228c079d85c75cbffb (diff)
downloadbcm5719-llvm-8c0739d3324775b83e66272bcaec303a28f6b444.tar.gz
bcm5719-llvm-8c0739d3324775b83e66272bcaec303a28f6b444.zip
Revert r166855. I can reproduce the bootstrap failure and have a testcase
to reduce. llvm-svn: 166863
Diffstat (limited to 'clang/test/SemaCXX/scope-check.cpp')
-rw-r--r--clang/test/SemaCXX/scope-check.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/clang/test/SemaCXX/scope-check.cpp b/clang/test/SemaCXX/scope-check.cpp
index 78228c0dc5f..86d1bd8960f 100644
--- a/clang/test/SemaCXX/scope-check.cpp
+++ b/clang/test/SemaCXX/scope-check.cpp
@@ -202,61 +202,3 @@ namespace test10 {
return 0;
}
}
-
-// pr13812
-namespace test11 {
- struct C {
- C(int x);
- ~C();
- };
- void f(void **ip) {
- static void *ips[] = { &&l0 };
- l0: // expected-note {{possible target of indirect goto}}
- C c0 = 42; // expected-note {{jump exits scope of variable with non-trivial destructor}}
- goto *ip; // expected-error {{indirect goto might cross protected scopes}}
- }
-}
-
-namespace test12 {
- struct C {
- C(int x);
- ~C();
- };
- void f(void **ip) {
- static void *ips[] = { &&l0 };
- const C c0 = 17;
- l0: // expected-note {{possible target of indirect goto}}
- const C &c1 = 42; // expected-note {{jump exits scope of variable with non-trivial destructor}}
- const C &c2 = c0;
- goto *ip; // expected-error {{indirect goto might cross protected scopes}}
- }
-}
-
-namespace test13 {
- struct C {
- C(int x);
- ~C();
- int i;
- };
- void f(void **ip) {
- static void *ips[] = { &&l0 };
- l0: // expected-note {{possible target of indirect goto}}
- const int &c1 = C(1).i; // expected-note {{jump exits scope of variable with non-trivial destructor}}
- goto *ip; // expected-error {{indirect goto might cross protected scopes}}
- }
-}
-
-namespace test14 {
- struct C {
- C(int x);
- ~C();
- operator int&() const;
- };
- void f(void **ip) {
- static void *ips[] = { &&l0 };
- l0:
- // no warning since the C temporary is destructed before the goto.
- const int &c1 = C(1);
- goto *ip;
- }
-}
OpenPOWER on IntegriCloud