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

Side by Side Diff: gcc/gcc/testsuite/objc.dg/selector-1.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
« no previous file with comments | « gcc/gcc/testsuite/objc.dg/proto-qual-1.m ('k') | gcc/gcc/testsuite/objc.dg/special/special.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Test warning for non existing selectors. */ 1 /* Test warning for non existing selectors. */
2 /* Contributed by Devang Patel <dpatel@apple.com>. */ 2 /* Contributed by Devang Patel <dpatel@apple.com>. */
3 /* { dg-options "-Wselector -fnext-runtime" } */ 3 /* { dg-options "-Wselector" } */
4 /* { dg-do compile } */ 4 /* { dg-do compile } */
5 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
5 6
6 typedef struct objc_object { struct objc_class *class_pointer; } *id; 7 typedef struct objc_object { struct objc_class *class_pointer; } *id;
7 typedef struct objc_selector *SEL; 8 typedef struct objc_selector *SEL;
8 9
9 @interface Foo 10 @interface Foo
10 - (void) foo; 11 - (void) foo;
11 - (void) bar; 12 - (void) bar;
12 @end 13 @end
13 14
14 @implementation Foo 15 @implementation Foo
15 - (void) bar 16 - (void) bar
16 { 17 {
17 } 18 }
18 19
19 - (void) foo 20 - (void) foo
20 { 21 {
21 SEL a,b,c; 22 SEL a,b,c;
22 a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */ 23 a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
23 b = @selector(bar); 24 b = @selector(bar);
24 } 25 }
25 @end 26 @end
26 27
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/objc.dg/proto-qual-1.m ('k') | gcc/gcc/testsuite/objc.dg/special/special.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698