diff options
author | Jason Merrill <jason@redhat.com> | 2011-06-10 10:20:28 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-10 10:20:28 -0400 |
commit | 32293e2bd60afe1e629c5b563e00314b3201495c (patch) | |
tree | 836b73d85697b80262b32a7ad8549b9ba223c56b /libstdc++-v3 | |
parent | d784c0d6e683d7b7b08d33cde79602707399531b (diff) | |
download | gcc-32293e2bd60afe1e629c5b563e00314b3201495c.zip gcc-32293e2bd60afe1e629c5b563e00314b3201495c.tar.gz gcc-32293e2bd60afe1e629c5b563e00314b3201495c.tar.bz2 |
* testsuite/20_util/bind/ref_neg.cc: Remove wrong test lines.
From-SVN: r174907
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/bind/ref_neg.cc | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2b577a7..b2a183c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc index ce6f642..daa815c 100644 --- a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc +++ b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc @@ -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() |