summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/pr23709.mm
blob: 7936956854f9f27cfa3d80fc5f975c8e178d7c7b (plain)
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