diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-15 00:01:03 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-15 00:01:03 +0000 |
commit | 923feac4e22c5ed1679b4f87adad6c6531b92863 (patch) | |
tree | baeedb564e8d1be48fab2cb5ee74a492fdfb1711 /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | 0c20bddc417134f88c3cf52de6bdca7276bef10b (diff) | |
download | bcm5719-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.cpp | 3 |
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}} |