OSDN Git Service

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