2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / objc / execute / private.m
blob02cc23498bd0e1c3bbb381c3728751b460856cf0
1 /* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
2 #include <objc/objc.h>
3 #include <objc/Object.h>
5 /* Test the @private, @protected, @public keyworks for ivars.  We only
6    check syntax. */
8 @interface TestClass : Object
10   int a;
12 @private
13   int ivarOne, ivarTwo;
14   id ivarThree;
16 @protected
17   int ivarFour;
19 @public
20   id ivarFive;
22 @end
24 @implementation TestClass
25 @end
28 int main (void)
30   /* Only test compilation */
31   return 0;