summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-15 00:01:03 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-15 00:01:03 +0000
commit923feac4e22c5ed1679b4f87adad6c6531b92863 (patch)
treebaeedb564e8d1be48fab2cb5ee74a492fdfb1711 /clang/test/SemaTemplate/instantiate-function-1.cpp
parent0c20bddc417134f88c3cf52de6bdca7276bef10b (diff)
downloadbcm5719-llvm-923feac4e22c5ed1679b4f87adad6c6531b92863.tar.gz
bcm5719-llvm-923feac4e22c5ed1679b4f87adad6c6531b92863.zip
Implement template instantiation for DeclStmt
llvm-svn: 71818
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp
index 9cf2ca5129e..6b755c8ea95 100644
--- a/clang/test/SemaTemplate/instantiate-function-1.cpp
+++ b/clang/test/SemaTemplate/instantiate-function-1.cpp
@@ -18,8 +18,11 @@ struct X2 {
void f(T);
T g(T x, T y) {
+ /* DeclStmt */;
+ T *xp = &x, &yr = y; // expected-error{{pointer to a reference}}
/* NullStmt */;
}
};
template struct X2<int>;
+template struct X2<int&>; // expected-note{{instantiation of}}
OpenPOWER on IntegriCloud