comparison gcc/testsuite/g++.dg/cpp0x/rv-cond1.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }