diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-14 23:40:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-14 23:40:54 +0000 |
commit | 0555e5fbcedd2fada5c709996b9a1bda3f0895f7 (patch) | |
tree | a1f5e2b9d27595f5e4fbf2f96345042491c59870 /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | 3587eed2c4abe5ab8a1b838d156512de5510e8a5 (diff) | |
download | bcm5719-llvm-0555e5fbcedd2fada5c709996b9a1bda3f0895f7.tar.gz bcm5719-llvm-0555e5fbcedd2fada5c709996b9a1bda3f0895f7.zip |
Template instantiation for the NULL statement. Lame, I know
llvm-svn: 71816
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-function-1.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp index 61b361f894a..9cf2ca5129e 100644 --- a/clang/test/SemaTemplate/instantiate-function-1.cpp +++ b/clang/test/SemaTemplate/instantiate-function-1.cpp @@ -12,3 +12,14 @@ struct X1 { }; 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>; |