summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-22 23:25:52 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-22 23:25:52 +0000
commit93fcf93bc6a1cbf9f6a3cae5373665502b15fcc5 (patch)
tree2ff4f9020716ea58147b2cfad081bad5ec38df0d /clang/test/SemaTemplate/instantiate-function-1.cpp
parenta838a40bc4e94c544bc9e4ad907ac87f4849ee08 (diff)
downloadbcm5719-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.cpp8
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);
}
};
OpenPOWER on IntegriCloud