summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/scope-check.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-27 16:49:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-27 16:49:47 +0000
commitbd2c99b77cb69baab12bbbf2518555b9b006f6c2 (patch)
tree46ef8b4c241dfe3fc22ae5f79b0c5b1ac121db4a /clang/test/SemaCXX/scope-check.cpp
parent8d2ee55a0cdf6c6084a79a82199b809fc4a06b9a (diff)
downloadbcm5719-llvm-bd2c99b77cb69baab12bbbf2518555b9b006f6c2.tar.gz
bcm5719-llvm-bd2c99b77cb69baab12bbbf2518555b9b006f6c2.zip
Revert 166876 while I debug a bootstrap problem.
llvm-svn: 166878
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