aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond14.C
blob: 5276287942122550456cfa8a5f5afca287867da3 (plain)
1
2
3
4
5
6
// DR 587
// PR c++/51317

int x = 1;
int const y = 2;
int const *p = &(1 ? x : y); // error: lvalue required as unary '&' operand