1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ // { dg-additional-options "-Wno-objc-root-class" } @interface A +(void)method: (int)parameter {} /* { dg-error "expected" } */ @end @implementation A +(void)method: (int)parameter { *parameter; /* { dg-error "invalid type argument" } */ } @end