repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ellipsis1.C
blob
bdd3cd2311ba1a2a8f8096b306bc2beb12c932e8
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
}