summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/at-class-1.mm
blob: 63721aa991703e72ba3516fa94e04c7e24eb8b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test @class.  */
/* { dg-do compile } */

@class Object; /* Ok */

@class Object, ;                            /* { dg-error "expected identifier" } */
@class Object, ;                            /* { dg-error "expected identifier" } */
@class Object, AnotherObject, ;             /* { dg-error "expected identifier" } */
@class Object, AnotherObject, TestObject ;  /* Ok */

@class Object                               /* { dg-error "expected .;." } */