☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-cond1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/rv-cond1.C
code
plain
raw
1
// PR c++/58714
2
// { dg-do compile { target c++11 } }
3
4
struct X {
5
X& operator=(const X&) = delete;
6
X& operator=(X&& ) = default;
7
};
8
9
void f(bool t) {
10
X a, b;
11
*(t ? &a : &b) = X();
12
(t ? a : b) = X();
13
}