diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-22 23:25:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-22 23:25:52 +0000 |
commit | 93fcf93bc6a1cbf9f6a3cae5373665502b15fcc5 (patch) | |
tree | 2ff4f9020716ea58147b2cfad081bad5ec38df0d /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | a838a40bc4e94c544bc9e4ad907ac87f4849ee08 (diff) | |
download | bcm5719-llvm-93fcf93bc6a1cbf9f6a3cae5373665502b15fcc5.tar.gz bcm5719-llvm-93fcf93bc6a1cbf9f6a3cae5373665502b15fcc5.zip |
Template instantiation for the GNU address-of-label extension.
llvm-svn: 72301
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-function-1.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp index be8c0e4cbb4..5b3a6d99840 100644 --- a/clang/test/SemaTemplate/instantiate-function-1.cpp +++ b/clang/test/SemaTemplate/instantiate-function-1.cpp @@ -178,6 +178,14 @@ template<typename T> struct IndirectGoto0 { void f(T x) { // FIXME: crummy error message below goto *x; // expected-error{{incompatible}} + + prior: + T prior_label = &&prior; + + T later_label = &&later; + + later: + (void)(1+1); } }; |