commit | bd5c81c7b5e19b6cdb7d52cc25d3df130d6b5e44 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <doug.gregor@gmail.com> | Thu May 14 23:40:54 2009 +0000 |
committer | Douglas Gregor <doug.gregor@gmail.com> | Thu May 14 23:40:54 2009 +0000 |
tree | 74dc51b50881624899e647f0ac757276d016e2b4 | |
parent | 5f62c5e91eeee5847b637b9820d5b3009d035dc1 [diff] [blame] |
Template instantiation for the NULL statement. Lame, I know git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71816 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 61b361f..9cf2ca5 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -12,3 +12,14 @@ template struct X0<int, float>; template struct X0<int*, int>; template struct X0<int X1::*, int>; // expected-note{{instantiation of}} + +template<typename T> +struct X2 { + void f(T); + + T g(T x, T y) { + /* NullStmt */; + } +}; + +template struct X2<int>;