summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2004-09-24 21:38:08 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-09-24 21:38:08 +0000
commitdd3017e4e5c8d9d102fb11330cba5fe87e0eda65 (patch)
tree781ebf2315847f7b39e8ba9bdf4681e8afcaefe5 /gcc/testsuite/objc.dg
parent2fbebc713bf06661a0181a47a096b8d2f5770453 (diff)
downloadgcc-dd3017e4e5c8d9d102fb11330cba5fe87e0eda65.tar.gz
objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION throughout.
objc: * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION throughout. (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION. (build_selector_translation_table): Use %J in diagnostic instead of diddling input_line. Fix spelling. testsuite: * objc.dg/proto-lossage-4.m: Use long instead of int to avoid extra diagnostics on targets with 64-bit pointers. * objc.dg/selector-1.m: Adjust dg-warning regexp. From-SVN: r88072
Diffstat (limited to 'gcc/testsuite/objc.dg')
-rw-r--r--gcc/testsuite/objc.dg/proto-lossage-4.m12
-rw-r--r--gcc/testsuite/objc.dg/selector-1.m2
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/testsuite/objc.dg/proto-lossage-4.m b/gcc/testsuite/objc.dg/proto-lossage-4.m
index 5bd25a406f7..447e67e12e6 100644
--- a/gcc/testsuite/objc.dg/proto-lossage-4.m
+++ b/gcc/testsuite/objc.dg/proto-lossage-4.m
@@ -7,25 +7,25 @@
typedef struct objc_object { struct objc_class *class_pointer; } *id;
@protocol Proto
-- (int)someValue;
+- (long)someValue;
@end
@interface Obj
-- (int)anotherValue;
+- (long)anotherValue;
@end
-int foo(void) {
- int receiver = 2;
+long foo(void) {
+ long receiver = 2;
Obj *objrcvr;
Obj <Proto> *objrcvr2;
- receiver += [receiver someValue]; /* { dg-warning "invalid receiver type .int( )?." } */
+ receiver += [receiver someValue]; /* { dg-warning "invalid receiver type .long int." } */
/* { dg-warning "Messages without a matching method signature" "" { target *-*-* } 22 } */
/* { dg-warning "will be assumed to return .id. and accept" "" { target *-*-* } 22 } */
/* { dg-warning ".\.\.\.. as arguments" "" { target *-*-* } 22 } */
/* { dg-warning "assignment makes integer from pointer without a cast" "" { target *-*-* } 22 } */
- receiver += [receiver anotherValue]; /* { dg-warning "invalid receiver type .int( )?." } */
+ receiver += [receiver anotherValue]; /* { dg-warning "invalid receiver type .long int." } */
/* { dg-warning "assignment makes integer from pointer without a cast" "" { target *-*-* } 28 } */
receiver += [(Obj *)receiver someValue]; /* { dg-warning ".Obj. may not respond to .\\-someValue." } */
diff --git a/gcc/testsuite/objc.dg/selector-1.m b/gcc/testsuite/objc.dg/selector-1.m
index b23cc90a284..b9cc5e0807d 100644
--- a/gcc/testsuite/objc.dg/selector-1.m
+++ b/gcc/testsuite/objc.dg/selector-1.m
@@ -19,7 +19,7 @@ typedef struct objc_selector *SEL;
- (void) foo
{
SEL a,b,c;
- a = @selector(b1ar); /* { dg-warning "creating selector for non existant method b1ar" } */
+ a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
b = @selector(bar);
}
@end