blob: 0e7218f0c8f96f2eeaecd560f492a2e17c662e30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// { dg-do assemble }
struct A
{
A(); // { dg-message "A::A|candidate expects" } candidate
A(A&); // { dg-message "A::A|no known conversion" } referenced below
};
int
main ()
{
try
{
throw A(); // { dg-error "no matching" "match" } can't copy
// { dg-message "candidate" "candidate note" { target *-*-* } 13 }
// { dg-error "thrown expression" "expr" { target *-*-* } 13 }
}
catch (...) { }
}
|