summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--test/SemaTemplate/instantiate-function-1.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp
index 543b3cc..144c630 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);
OpenPOWER on IntegriCloud