OSDN Git Service

PR c++/6936
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / misc14.C
index d2e4909..ea6ce4c 100644 (file)
@@ -3,11 +3,11 @@
 class X {
 public:
     enum e {
-       New // { dg-error "conflicts with previous" }
+       New // { dg-message "previous" }
        ,   // { dg-error "comma at end" "" { target c++98 } }
     };
 
-    static int New(int); // { dg-error "declaration of" }
+    static int New(int); // { dg-error "conflicts with a previous" }
 };
 
 int main() {}