summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond9.C
blob: e71a84ba43e22216ea930e1ec3c3f415ec28297c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/27666

struct A { // { dg-message "A" }
  A(int); // { dg-message "A" }
};

void foo(volatile A a) { 
  1 ? a : 0; // { dg-error "match|temporary" }
  1 ? 0 : a; // { dg-error "match|temporary" }
}