diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-10-01 23:51:25 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-10-01 23:51:25 +0000 |
| commit | f343fd8929ca94eb36b0765f33b1cda60e717b5b (patch) | |
| tree | 22240b23e913e1860cc936e052a1651117ab01ac /clang/test/SemaTemplate/explicit-instantiation.cpp | |
| parent | bb69c947983ee49560b4f1165381eb0eff092f96 (diff) | |
| download | bcm5719-llvm-f343fd8929ca94eb36b0765f33b1cda60e717b5b.tar.gz bcm5719-llvm-f343fd8929ca94eb36b0765f33b1cda60e717b5b.zip | |
Make sure to free the explicit template arguments provided for an
explicit instantiation. Also, tighten up reference-count checking to
help catch these issues earlier. Fixes PR5069.
llvm-svn: 83225
Diffstat (limited to 'clang/test/SemaTemplate/explicit-instantiation.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/explicit-instantiation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/explicit-instantiation.cpp b/clang/test/SemaTemplate/explicit-instantiation.cpp index 07994f97d3f..b9a4ad282b9 100644 --- a/clang/test/SemaTemplate/explicit-instantiation.cpp +++ b/clang/test/SemaTemplate/explicit-instantiation.cpp @@ -69,3 +69,7 @@ template void print_type<int>(float*); // expected-error{{does not refer}} void print_type(double*); template void print_type<double>(double*); + +// PR5069 +template<int I> void foo0 (int (&)[I + 1]) { } +template void foo0<2> (int (&)[3]); |

