diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/partial7.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/partial7.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/partial7.C b/gcc/testsuite/g++.dg/template/partial7.C new file mode 100644 index 000000000..0fd157fdc --- /dev/null +++ b/gcc/testsuite/g++.dg/template/partial7.C @@ -0,0 +1,10 @@ +// PR c++/43559 + +template<typename T, typename U> void f(U&) { } +template<typename T, typename U> void f(T const&) { } + +int main() +{ + int a; + f<int, int const>(a); +} |