Debian Codegraph @

gcc/testsuite/g++.dg/overload/ellipsis1.C

raw
1 // PR c++/15142
2 // Bug: We were aborting after giving a warning about passing a non-POD.
3 // { dg-options "-Wconditionally-supported" }
4
5 struct B {
6 B() throw() { }
7 B(const B&) throw() { }
8 };
9
10 struct X {
11 B a;
12 X& operator=(const X&);
13 };
14
15 struct S { S(...); };
16
17 void SillyFunc() {
18 throw S(X()); // { dg-message "copy" }
19 }