Commit 6dd00ea9 by Jason Merrill Committed by Jason Merrill

vla1.C: Adjust for C++0x mode.

	* g++.dg/ext/vla1.C: Adjust for C++0x mode.
	* g++.dg/other/warning1.C: Likewise.
	* g++.old-deja/g++.bugs/900119_01.C: Likewise.
	* g++.old-deja/g++.gb/scope06.C: Likewise.
	* g++.old-deja/g++.law/cvt11.C: Likewise.
	* g++.old-deja/g++.law/init1.C: Likewise.
	* g++.dg/abi/mangle26.C: Likewise.

From-SVN: r170010
parent be771f25
2011-02-09 Jason Merrill <jason@redhat.com>
* g++.dg/ext/vla1.C: Adjust for C++0x mode.
* g++.dg/other/warning1.C: Likewise.
* g++.old-deja/g++.bugs/900119_01.C: Likewise.
* g++.old-deja/g++.gb/scope06.C: Likewise.
* g++.old-deja/g++.law/cvt11.C: Likewise.
* g++.old-deja/g++.law/init1.C: Likewise.
* g++.dg/abi/mangle26.C: Likewise.
* g++.dg/template/function1.C: Adjust for C++0x mode.
* g++.dg/cpp0x/regress/template-function1.C: Copy it.
......
......@@ -5,7 +5,7 @@
namespace std {
struct A {
virtual void f () { }
A() { }
};
}
......
......@@ -22,5 +22,5 @@ B::B (int i)
int ar[1][i]; // { dg-error "array" }
} s;
s.ar[0][0] = 0; // { dg-error "no member" }
s.ar[0][0] = 0; // { dg-prune-output "no member" }
}
......@@ -13,6 +13,7 @@ struct S
int main()
{
// { dg-prune-output "not a member" }
printf("%f\n%f\n", S::inf, S::nan);
return 0;
}
......@@ -8,6 +8,8 @@
// keywords: member declaration, member initialization
// { dg-prune-output "non-static data member initializers" }
int global_int;
class class0 {
......
// { dg-do assemble }
// { dg-prune-output "non-static data member initializers" }
// GROUPS passed gb scope
struct C {
struct D {
......@@ -10,5 +11,6 @@ struct C {
void C::D::foo ()
{
// { dg-prune-output "from this location" }
x = Ok;
}
......@@ -6,6 +6,10 @@
// Message-Id: <9211101908.AA13557@tera.com>
// Subject: type cast of qualified const member breaks g++2.3.1
// Ignore extra errors in C++0x mode.
// { dg-prune-output "non-static data member initializers" }
// { dg-prune-output "from this location" }
// { dg-prune-output "uninitialized" }
#include <stdio.h>
class Thing{
......
// { dg-do assemble }
// { dg-prune-output "non-static data member initializers" }
// GROUPS passed initialization
class foo {
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment