* testsuite/lib/prune.exp (libstdc++-dg-prune): Prune notes.
* testsuite/20_util/duration/cons/1_neg.cc: Remove dg-excess-errors.
* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
* testsuite/20_util/forward/1_neg.cc: Likewise.
* testsuite/20_util/function/cmp/cmp_neg.cc: Likewise.
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
* testsuite/20_util/reference_wrapper/ref_neg.cc: Likewise.
* testsuite/20_util/tuple/comparison_operators/35480_neg.cc: Likewise.
* testsuite/tr1/6_containers/tuple/comparison_operators/35480_neg.cc: Likewise.
* testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc: Likewise.
* testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: Likewise.
* testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/auto_ptr_neg.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Likewise.
* testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/map/operators/1_neg.cc: Likewise.
* testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: Likewise.
* testsuite/decimal/mixed-mode-arith_neg.cc: Likewise.
* testsuite/decimal/mixed-mode-cmp_neg.cc: Likewise.
* testsuite/decimal/operator_neg.cc: Likewise.
From-SVN: r174884
+2011-06-09 Jason Merrill <jason@redhat.com>
+
+ * testsuite/lib/prune.exp (libstdc++-dg-prune): Prune notes.
+ * testsuite/20_util/duration/cons/1_neg.cc: Remove dg-excess-errors.
+ * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
+ * testsuite/20_util/forward/1_neg.cc: Likewise.
+ * testsuite/20_util/function/cmp/cmp_neg.cc: Likewise.
+ * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
+ * testsuite/20_util/reference_wrapper/ref_neg.cc: Likewise.
+ * testsuite/20_util/tuple/comparison_operators/35480_neg.cc: Likewise.
+ * testsuite/tr1/6_containers/tuple/comparison_operators/35480_neg.cc: Likewise.
+ * testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc: Likewise.
+ * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: Likewise.
+ * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: Likewise.
+ * testsuite/20_util/unique_ptr/cons/auto_ptr_neg.cc: Likewise.
+ * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Likewise.
+ * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Likewise.
+ * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Likewise.
+ * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Likewise.
+ * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
+ * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Likewise.
+ * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise.
+ * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
+ * testsuite/23_containers/forward_list/requirements/dr438/assign_neg.cc: Likewise.
+ * testsuite/23_containers/forward_list/requirements/dr438/constructor_1_neg.cc: Likewise.
+ * testsuite/23_containers/forward_list/requirements/dr438/constructor_2_neg.cc: Likewise.
+ * testsuite/23_containers/forward_list/requirements/dr438/insert_neg.cc: Likewise.
+ * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise.
+ * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise.
+ * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise.
+ * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise.
+ * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise.
+ * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise.
+ * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise.
+ * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise.
+ * testsuite/23_containers/map/operators/1_neg.cc: Likewise.
+ * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: Likewise.
+ * testsuite/decimal/mixed-mode-arith_neg.cc: Likewise.
+ * testsuite/decimal/mixed-mode-cmp_neg.cc: Likewise.
+ * testsuite/decimal/operator_neg.cc: Likewise.
+
2011-06-09 Simon Baldwin <simonb@google.com>
* scripts/extract_symvers.in: Handle processor/OS specific or
duration<int, std::milli> d2_copy(d2); // { dg-error "no matching" }
}
-// { dg-excess-errors "candidates are" }
typedef int rep_type;
typedef int period_type;
typedef std::chrono::duration<rep_type, period_type> test_type;
- test_type d;
+ test_type d; // { dg-error "required from here" }
}
// { dg-error "must be a specialization of ratio" "" { target *-*-* } 227 }
-// { dg-error "required from here" "" { target *-*-* } 32 }
-// { dg-excess-errors "In instantiation of" }
+// { dg-prune-output "not a member" }
std::shared_ptr<A> sp1 = factory<A>(2, 1.414); // { dg-error "required from here" }
}
-// { dg-excess-errors "" }
f1 == f2; // { dg-error "no match" }
f1 != f2; // { dg-error "no match" }
}
-// { dg-excess-errors "candidates are" }
// { dg-error "overflow in multiplication" "" { target *-*-* } 104 }
// { dg-error "overflow in multiplication" "" { target *-*-* } 100 }
// { dg-error "overflow in multiplication" "" { target *-*-* } 102 }
-// { dg-excess-errors "In instantiation of" }
-// { dg-excess-errors "out of range" }
+// { dg-prune-output "out of range" }
+// { dg-prune-output "not usable in a constant expression" }
int main()
{
- test02();
+ test01();
}
-// { dg-excess-errors "" }
+// { dg-prune-output "declared here" }
test01();
return 0;
}
-// { dg-excess-errors "In constructor" }
+
+// { dg-prune-output "cannot convert" }
test01();
return 0;
}
-// { dg-excess-errors "initializing argument" }
+// { dg-prune-output "initializing argument" }
const std::auto_ptr<A> a;
std::shared_ptr<A> p(std::move(a)); // { dg-error "no match" }
}
-// { dg-excess-errors "candidates are" }
test01();
return 0;
}
-// { dg-excess-errors "initializing argument" }
+// { dg-prune-output "initializing argument" }
if ( t1 < t2 ) {} // { dg-error "here" }
if ( t1 == t2 ) {} // { dg-error "here" }
}
-// { dg-excess-errors "incomplete type" }
+// { dg-prune-output "incomplete type" }
const std::auto_ptr<A> a(new A);
std::unique_ptr<A> a2(std::move(a)); // { dg-error "no match" }
}
-// { dg-excess-errors "candidates are" }
using std::unique_ptr;
-// { dg-excess-errors "static assertion failed" }
+// { dg-prune-output "static assertion failed" }
void
test01()
tuple<Type> t(allocator_arg, a, 1);
}
// { dg-error "no matching function" "" { target *-*-* } 112 }
-// { dg-excess-errors "note" }
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1668 }
-// { dg-excess-errors "" }
#include <deque>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1601 }
-// { dg-excess-errors "" }
#include <deque>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1601 }
-// { dg-excess-errors "" }
#include <deque>
#include <utility>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1752 }
-// { dg-excess-errors "" }
#include <deque>
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// { dg-error "no matching" "" { target *-*-* } 1210 }
-// { dg-excess-errors "" }
// Copyright (C) 2009, 2010 Free Software Foundation
//
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// { dg-error "no matching" "" { target *-*-* } 1210 }
-// { dg-excess-errors "" }
// Copyright (C) 2009, 2010, 2011 Free Software Foundation
//
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// { dg-error "no matching" "" { target *-*-* } 1210 }
-// { dg-excess-errors "" }
// Copyright (C) 2009, 2010, 2011 Free Software Foundation
//
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// { dg-error "no matching" "" { target *-*-* } 1210 }
-// { dg-excess-errors "" }
// Copyright (C) 2009, 2010, 2011 Free Software Foundation
//
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1497 }
-// { dg-excess-errors "" }
#include <list>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1453 }
-// { dg-excess-errors "" }
#include <list>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1453 }
-// { dg-excess-errors "" }
#include <list>
#include <utility>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1453 }
-// { dg-excess-errors "" }
#include <list>
test &= itr == mapByName.end(); // { dg-error "no" }
}
-// { dg-excess-errors "" }
test &= itr == setByName.end(); // { dg-error "no" }
}
-// { dg-excess-errors "" }
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1157 }
-// { dg-excess-errors "" }
#include <vector>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1087 }
-// { dg-excess-errors "" }
#include <vector>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1087 }
-// { dg-excess-errors "" }
#include <vector>
#include <utility>
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1198 }
-// { dg-excess-errors "" }
#include <vector>
return 0;
}
+// { dg-error "deleted" "" { target *-*-* } 426 }
+// { dg-error "deleted" "" { target *-*-* } 427 }
// { dg-error "operator" "" { target *-*-* } 428 }
// { dg-error "operator" "" { target *-*-* } 429 }
// { dg-error "operator" "" { target *-*-* } 430 }
-// { dg-excess-errors "In file included from" }
+
+// { dg-prune-output "declared here" }
a128 /= ld; // { dg-error "error" }
}
-// { dg-excess-errors "notes about candidates" }
b6 = d >= b128; // { dg-error "error" }
}
-// { dg-excess-errors "notes about candidates" }
a128 = !b128; // { dg-error "error" }
}
-// { dg-excess-errors "" { target *-*-* } }
regsub -all "(^|\n)In file included from \[^\n\]*" $text "" text
regsub -all "(^|\n)\[ \t\]*from \[^\n\]*" $text "" text
+ # Ignore informational notes.
+ regsub -all "(^|\n)\[^\n\]*: note: \[^\n\]*" $text "" text
+
# Ignore errata warning from IA64 assembler.
regsub -all "(^|\n)\[^\n\]*: Additional NOP may be necessary to workaround Itanium processor A/B step errata" $text "" text
regsub -all "(^|\n)\[^\n*\]*: Assembler messages:\[^\n\]*" $text "" text
test01();
return 0;
}
-// { dg-excess-errors "In constructor" }
+
+// { dg-prune-output "cannot convert" }
test01();
return 0;
}
-// { dg-excess-errors "candidates are" }
test01();
return 0;
}
-// { dg-excess-errors "candidates are" }
if ( t1 < t2 ) {} // { dg-error "here" }
if ( t1 == t2 ) {} // { dg-error "here" }
}
-// { dg-excess-errors "incomplete type" }
+// { dg-prune-output "incomplete type" }