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