aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/bind/ref_neg.cc')
-rw-r--r--libstdc++-v3/testsuite/20_util/bind/ref_neg.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
index f5a08c2630a..fa2123114d5 100644
--- a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
@@ -29,8 +29,12 @@ int inc(int& i) { return ++i; }
void test01()
{
const int dummy = 0;
- std::bind(&inc, _1)(0); // { dg-error "no match|rvalue" }
- std::bind(&inc, std::ref(dummy))(); // { dg-error "no match|const" }
+ std::bind(&inc, _1)(0); // { dg-error "no match" }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1206 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1219 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1233 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1247 }
+ std::bind(&inc, std::ref(dummy))(); // { dg-error "no match" }
}
struct Inc