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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond12.C
blob
9134f81668ff1aae206c710880a43ef91c9b3541
1
// PR c++/58714
2
// { dg-do run }
3
4
struct X {
5
X& operator=(const X&){}
6
X& operator=(X&){__builtin_abort();}
7
};
8
9
int main(int argv,char**) {
10
X a, b;
11
((argv > 2) ? a : b) = X();
12
}