summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-01 20:56:44 +0000
committerChris Lattner <sabre@nondot.org>2010-03-01 20:56:44 +0000
commite1582706b0d2202c2538b7ff4b092d28a4a262d6 (patch)
tree2b7eb1945b16ed89f7d17278701bbb25ce9062c8 /clang/test/SemaTemplate/instantiate-function-1.cpp
parent4f13beb8b64d8bf7aa93f48220f383cace1ee278 (diff)
downloadbcm5719-llvm-e1582706b0d2202c2538b7ff4b092d28a4a262d6.tar.gz
bcm5719-llvm-e1582706b0d2202c2538b7ff4b092d28a4a262d6.zip
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" llvm-svn: 97495
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp
index 543b3cc1975..144c630fce5 100644
--- a/clang/test/SemaTemplate/instantiate-function-1.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud