| commit | b06585a1f117d8f056effc7ed500daac78124bbc | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <doug.gregor@gmail.com> | Fri May 15 00:01:03 2009 +0000 |
| committer | Douglas Gregor <doug.gregor@gmail.com> | Fri May 15 00:01:03 2009 +0000 |
| tree | 1cf7756fcf570aabc11988eddd535efa54e5bc39 | |
| parent | 6e83c92b84335fb36c29786a750594f736a90ad7 [diff] [blame] |
Implement template instantiation for DeclStmt git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71818 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 9cf2ca5..6b755c8 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -18,8 +18,11 @@ 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}}