PR c++/15142
[official-gcc.git] / gcc / testsuite / g++.dg / overload / ellipsis1.C
blobbdd3cd2311ba1a2a8f8096b306bc2beb12c932e8
1 // PR c++/15142
2 // Bug: We were aborting after giving a warning about passing a non-POD.
4 // Suppress the warning about undefined behavior.
5 // { dg-options "-w" }
7 struct B { 
8     B() throw() { } 
9     B(const B&) throw() { } 
10 }; 
12 struct X { 
13     B a; 
14     X& operator=(const X&); 
15 }; 
17 struct S { S(...); }; 
19 void SillyFunc() { 
20   throw S(X()); 
21