aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/expr/cond9.C
blob: e8e1397c06ea7195ee84446314b81f41197001c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
  1 ? 0 : a; // { dg-error "match|temporary" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 10 }
}