OSDN Git Service

* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / qual1.C
index fa2d33f..b6eba42 100644 (file)
@@ -1,17 +1,18 @@
-// Build don't link:
+// { dg-do assemble  }
+// { dg-options "-O" }
 // Origin: Benjamin Pflugmann <philemon@spin.de>
-// Special g++ Options: -O
 
 // DR 295 allows qualification via typedef
 
 typedef const char *(func_type)();
 
-class
+class C
 {
 public:
   func_type *Function;
-  const func_type* function(void) { return Function; } // ok constifying
-  volatile func_type* functionv(void); // WARNING - qualifier
+  // The following is DR 295 dependent
+  const func_type* function(void) { return Function; }
+  volatile func_type* functionv(void);
 } action;
 
 void work(const char *source)