From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id DB8B03858C5F; Thu, 16 Feb 2023 16:21:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB8B03858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676564465; bh=P6/j4CQugcIbZxG1BXL9jamA12MOeaf8gTEYCMhbGXc=; h=From:To:Subject:Date:From; b=n3pI0kHSD/IrMGsSzPvc4d5wx+uXMxHDZz7jrnLUrUBN97ou95saiBzcOeSrxmqqx S5ga5oLyCcdbAfQEcj36nEoOIYce4QQPJV88PsnjncHAt9U2FVC6mHWM4ZrcqBVC/b lqlGwAsbdSL6WlK741PBdoqyQryEXymX3SiKsDgU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6099] testsuite, objective-c: Cater for Windows intptr type. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/master X-Git-Oldrev: 46711ff8e60d64b7e5550f4614c29d42b224f98b X-Git-Newrev: 07f497c2da3600cc99cd7d1b5c6726972fb2b5a1 Message-Id: <20230216162105.DB8B03858C5F@sourceware.org> Date: Thu, 16 Feb 2023 16:21:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:07f497c2da3600cc99cd7d1b5c6726972fb2b5a1 commit r13-6099-g07f497c2da3600cc99cd7d1b5c6726972fb2b5a1 Author: Iain Sandoe Date: Thu Feb 16 16:18:11 2023 +0000 testsuite, objective-c: Cater for Windows intptr type. This adjusts the diagnostic output matches to cater for the differences in intptr types on Windows. Patch from 'nightstrike'. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * objc.dg/proto-lossage-4.m: Amendn diagnostic matches for Windows. Diff: --- gcc/testsuite/objc.dg/proto-lossage-4.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/objc.dg/proto-lossage-4.m b/gcc/testsuite/objc.dg/proto-lossage-4.m index 9d1def5f9de..9b2367a568a 100644 --- a/gcc/testsuite/objc.dg/proto-lossage-4.m +++ b/gcc/testsuite/objc.dg/proto-lossage-4.m @@ -28,13 +28,13 @@ long foo(void) { receiver += [receiver anotherValue]; /* { dg-warning "invalid receiver type .intptr_t." } */ receiver += [(Obj *)receiver someValue]; /* { dg-warning ".Obj. may not respond to .\\-someValue." } */ -/* { dg-warning "assignment to 'intptr_t' {aka '(long )?int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ +/* { dg-warning "assignment to 'intptr_t' {aka '(long )*int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ receiver += [(Obj *)receiver anotherValue]; receiver += [(Obj *)receiver someValue]; receiver += [(Obj *)receiver anotherValue]; receiver += [objrcvr someValue]; /* { dg-warning ".Obj. may not respond to .\\-someValue." } */ -/* { dg-warning "assignment to 'intptr_t' {aka '(long )?int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ +/* { dg-warning "assignment to 'intptr_t' {aka '(long )*int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ receiver += [objrcvr anotherValue]; receiver += [(Obj *)objrcvr someValue]; @@ -42,7 +42,7 @@ long foo(void) { receiver += [objrcvr2 someValue]; receiver += [objrcvr2 anotherValue]; receiver += [(Obj *)objrcvr2 someValue]; /* { dg-warning ".Obj. may not respond to .\\-someValue." } */ -/* { dg-warning "assignment to 'intptr_t' {aka '(long )?int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ +/* { dg-warning "assignment to 'intptr_t' {aka '(long )*int'} from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */ receiver += [(Obj *)objrcvr2 anotherValue];