commit | 23daf4111f5d58dc21a2615c3e1985e66420d05f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Fri May 15 00:15:26 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Fri May 15 00:15:26 2009 +0000 |
tree | dd2279f34deaf5af70d4a3396e0c5f3a45e063b4 | |
parent | c691544bd61c2355905b9d4d5d8b0d23db311834 [diff] [blame] |
Instantiate goto and label statements. (Very useful, I know) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71822 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 6b755c8..5ca3401 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -26,3 +26,14 @@ template struct X2<int>; template struct X2<int&>; // expected-note{{instantiation of}} + +template<typename T> +struct X3 { + void f(T) { + Label: + T x; + goto Label; + } +}; + +template struct X3<int>;