aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond9.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/expr/cond9.C')
-rw-r--r--gcc/testsuite/g++.dg/expr/cond9.C8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.dg/expr/cond9.C b/gcc/testsuite/g++.dg/expr/cond9.C
index e8e1397c06e..b344c1f683a 100644
--- a/gcc/testsuite/g++.dg/expr/cond9.C
+++ b/gcc/testsuite/g++.dg/expr/cond9.C
@@ -1,12 +1,10 @@
// PR c++/27666
struct A { // { dg-message "A" }
- A(int); // { dg-message "A" }
+ A(int);
};
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 }
+ 1 ? a : 0; // { dg-error "qualifiers|lvalue|no match" }
+ 1 ? 0 : a; // { dg-error "qualifiers|lvalue|no match" }
}