| 1 |
// PR c++/111160 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct TheClass { |
| 5 |
TheClass() {} |
| 6 |
TheClass(volatile TheClass& t) {} |
| 7 |
TheClass operator=(volatile TheClass& t) volatile { return t; } |
| 8 |
}; |
| 9 |
void the_func() { |
| 10 |
volatile TheClass x, y, z; |
| 11 |
(false ? x : y) = z; |
| 12 |
} |