diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-01 20:56:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-01 20:56:44 +0000 |
commit | 632c9d26925f9aa8179607956c83ee348930b6d7 (patch) | |
tree | 7a729e02a1e0ddf2811f9e8ef04d21a81b19b189 | |
parent | 076ceb093e5e4c1d6e8f6fcd27a816277a1041e2 (diff) |
avoid issues with the new scope protector. Previously we'd error
with "address taken of label in protected scope, jump to it would have unknown effect on scope"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97495 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaTemplate/instantiate-function-1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 543b3cc197..144c630fce 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp @@ -177,9 +177,11 @@ template<typename T> struct IndirectGoto0 { goto *x; // expected-error{{incompatible}} prior: - T prior_label = &&prior; + T prior_label; + prior_label = &&prior; - T later_label = &&later; + T later_label; + later_label = &&later; later: (void)(1+1); |