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 | e1582706b0d2202c2538b7ff4b092d28a4a262d6 (patch) | |
tree | 2b7eb1945b16ed89f7d17278701bbb25ce9062c8 /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | 4f13beb8b64d8bf7aa93f48220f383cace1ee278 (diff) | |
download | bcm5719-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.cpp | 6 |
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); |