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
docs: Document that __builtin_assoc_barrier also can be used for FMAs [PR115023]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond12.C
blob
90d77dbd708603548db6e8e45d2f055735019859
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
X g;
10
X& X::operator=(const X&)
11
{
12
return g;
13
}
14
15
int main(int argv,char**) {
16
X a, b;
17
((argv > 2) ? a : b) = X();
18
}