i386: Refactor get_intel_cpu
[official-gcc.git] / gcc / testsuite / g++.dg / expr / cond9.C
blobf7e092e1445bedc2add9627b83ccba2be79901c1
1 // PR c++/27666
3 struct A { // { dg-message "A" }
4   A(int);
5 };
7 void foo(volatile A a) {  // { dg-warning "deprecated" "" { target c++2a } }
8   1 ? a : 0; // { dg-error "qualifiers|lvalue|no match" }
9   1 ? 0 : a; // { dg-error "qualifiers|lvalue|no match" }
10