PR c++/80290
[official-gcc.git] / gcc / testsuite / g++.dg / overload / ellipsis1.C
blob1dde2bc1d2a39dd1253250331936e35d7bbc4f9b
1 // PR c++/15142
2 // Bug: We were aborting after giving a warning about passing a non-POD.
3 // { dg-options "-Wconditionally-supported" }
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 }; 
15 struct S { S(...); }; 
17 void SillyFunc() { 
18   throw S(X());                 // { dg-message "copy" }
19