diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr31431-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr31431-2.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C b/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C new file mode 100644 index 000000000..15efbc5d3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C @@ -0,0 +1,8 @@ +// { dg-options "-std=gnu++0x" } +template<typename, typename..., typename> void foo(); // { dg-message "note" } + +void bar() +{ + foo<int>(); // { dg-error "no matching function" } + // { dg-message "candidate" "candidate note" { target *-*-* } 6 } +} |