Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: gcc/gcc/testsuite/objc/execute/private.m

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */ 1 /* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */
2 #import "../../objc-obj-c++-shared/Object1.h"
2 #include <objc/objc.h> 3 #include <objc/objc.h>
3 #include <objc/Object.h>
4 4
5 /* Test the @private, @protected, @public keyworks for ivars. We only 5 /* Test the @private, @protected, @public keyworks for ivars. We only
6 check syntax. */ 6 check syntax. */
7 7
8 @interface TestClass : Object 8 @interface TestClass : Object
9 { 9 {
10 int a; 10 int a;
11 11
12 @private 12 @private
13 int ivarOne, ivarTwo; 13 int ivarOne, ivarTwo;
14 id ivarThree; 14 id ivarThree;
15 15
16 @protected 16 @protected
17 int ivarFour; 17 int ivarFour;
18 18
19 @public 19 @public
20 id ivarFive; 20 id ivarFive;
21 } 21 }
22 @end 22 @end
23 23
24 @implementation TestClass 24 @implementation TestClass
25 @end 25 @end
26 26
27 27
28 int main (void) 28 int main (void)
29 { 29 {
30 /* Only test compilation */ 30 /* Only test compilation */
31 return 0; 31 return 0;
32 } 32 }
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/objc/execute/np-2.m ('k') | gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698