repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/80290
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ellipsis1.C
blob
1dde2bc1d2a39dd1253250331936e35d7bbc4f9b
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 {
6
B() throw() { }
7
B(const B&) throw() { }
8
};
9
10
struct X {
11
B a;
12
X& operator=(const X&);
13
};
14
15
struct S { S(...); };
16
17
void SillyFunc() {
18
throw S(X()); // { dg-message "copy" }
19
}