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 {
throwB6     B() throw() { }
throwB7     B(const B&) throw() { }
8 };
9 
10 struct X {
11     B a;
12     X& operator=(const X&);
13 };
14 
15 struct S { S(...); };
16 
SillyFunc()17 void SillyFunc() {
18   throw S(X()); 		// { dg-message "copy" }
19 }
20