OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / virtual11.C
index 62c9b24..8b46dc7 100644 (file)
@@ -1,4 +1,4 @@
-// Build don't link:
+// { dg-do assemble  }
 
 // Copyright (C) 2000 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 14 Nov 2000 <nathan@codesourcery.com>
@@ -12,7 +12,7 @@ struct A
 
 struct B
 {
-  virtual void foo ();  // ERROR - of this function
+  virtual void foo ();  // { dg-error "" } of this function
 };
 
 struct C : A , B
@@ -27,5 +27,5 @@ struct D : C
 
 struct E : D
 {
-  virtual int foo ();   // ERROR - invalid override
+  virtual int foo ();   // { dg-error "" } invalid override
 };