diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error31.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/error31.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error31.C b/gcc/testsuite/g++.dg/other/error31.C new file mode 100644 index 000000000..95c9d7374 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error31.C @@ -0,0 +1,14 @@ +// PR c++/35335 +// { dg-do compile } +// { dg-options "" } +// { dg-bogus "not supported by" "" { target *-*-* } 0 } + +struct A {}; // { dg-message "operator=|no known conversion" } + +void +foo () +{ + A a; + a = ({ { 1; } }); // { dg-error "no match for" } + // { dg-message "candidate" "candidate note" { target *-*-* } 12 } +} |