Debian Codegraph @

gcc/testsuite/objc.dg/pr23709.m

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