* testsuite/20_util/bind/ref_neg.cc: Remove wrong test lines.
From-SVN: r174907
This commit is contained in:
parent
d784c0d6e6
commit
32293e2bd6
@ -1,5 +1,7 @@
|
||||
2011-06-10 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* testsuite/20_util/bind/ref_neg.cc: Remove wrong test lines.
|
||||
|
||||
* testsuite/20_util/bind/ref_neg.cc: Remove dg-excess-errors,
|
||||
fix dg-error markup.
|
||||
|
||||
|
@ -29,10 +29,8 @@ int inc(int& i) { return ++i; }
|
||||
void test01()
|
||||
{
|
||||
const int dummy = 0;
|
||||
std::bind(&inc, _1)(0); // { dg-error "" }
|
||||
std::bind(&inc, std::ref(dummy))(); // { dg-error "" }
|
||||
std::bind(&inc, dummy)();
|
||||
std::bind(&inc, 0)();
|
||||
std::bind(&inc, _1)(0); // { dg-error "no match" }
|
||||
std::bind(&inc, std::ref(dummy))(); // { dg-error "no match" }
|
||||
}
|
||||
|
||||
struct Inc
|
||||
@ -46,8 +44,8 @@ struct Inc
|
||||
void test02()
|
||||
{
|
||||
const int dummy = 0;
|
||||
std::bind(Inc(), _1)(dummy); // { dg-error "" }
|
||||
std::bind(&Inc::f, Inc(), std::ref(dummy))(); // { dg-error "" }
|
||||
std::bind(Inc(), _1)(dummy); // { dg-error "no match" }
|
||||
std::bind(&Inc::f, Inc(), std::ref(dummy))(); // { dg-error "no match" }
|
||||
}
|
||||
|
||||
int main()
|
||||
|
Loading…
Reference in New Issue
Block a user