OSDN Git Service

Scan "lea\[lq\]?\[ \t\]" instead of "lea\[ \t\]".
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / typeck2.C
index 24f3cb1..e1bb8b5 100644 (file)
@@ -1,4 +1,4 @@
-// Build don't link: 
+// { dg-do assemble  }
 // GROUPS passed typeck
 // typeck file
 // From: Jutta Degener <jutta@cs.tu-berlin.de>
@@ -11,6 +11,6 @@ int main()
   {
         int * p = new int[10];
         int * q = new arr;              /* g++ complains, but shouldn't     */
-        int (* r)[10] = new arr;        /* g++ doesn't complain, but should */// ERROR - 
+        int (* r)[10] = new arr;        /* g++ doesn't complain, but should */// { dg-error "" } 
   }