-// Build don't link:
+// { dg-do assemble }
// GROUPS passed typeck
// typeck file
// From: Jutta Degener <jutta@cs.tu-berlin.de>
// Message-ID: <199306091558.AA19075@mail.cs.tu-berlin.de>
typedef int arr[10];
- main()
+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 "" }
}