From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D23B3850861; Fri, 18 Aug 2023 17:54:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D23B3850861 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692381298; bh=CEMs3j8UuGO22jZYcbNnoZ6+HOhOnRwGs8+onMArKho=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pA9q0JJWJcBrj9wPeVvMUg6aD0inY+DAFCuiY4ctuRvMFVUQya4ZEph2KPFqxzTe8 Qq1I0LdcQjCkOOBKX3buNwsyz4Dg/xLpkgY3qdzyloRirV0jFkjhPnIgrfjjpatV6s 8fevvI23atiNm2xTEmZLaURL2sFBj8xahwyLKIaI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/111066] g++.dg/special/initpri3.C fails on darwin Date: Fri, 18 Aug 2023 17:54:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111066 --- Comment #2 from Andrew Pinski --- The wording of the warning is different from what dg-warning directive in t= he testcase expects. diff --git a/gcc/testsuite/g++.dg/special/initpri3.C b/gcc/testsuite/g++.dg/special/initpri3.C index 3d745a42a6a..63ed3208228 100644 --- a/gcc/testsuite/g++.dg/special/initpri3.C +++ b/gcc/testsuite/g++.dg/special/initpri3.C @@ -7,4 +7,4 @@ #endif struct A { A(); } a __attribute__((init_priority(500))); -// { dg-warning "attribute directive ignored" "" { target { ! init_priorit= y } } .-1 } +// { dg-warning "attribute ignored" "" { target { ! init_priority } } .-1 } Is the correct fix I think. The directive in the warning only comes from namespace and using uses.=