diff mbox series

[Darwin,PPC,testsuite,committed] Fix darwin-bool-1.c.

Message ID 5A2285BD-FC69-474A-86B4-257BC9C68496@sandoe.co.uk
State New
Headers show
Series [Darwin,PPC,testsuite,committed] Fix darwin-bool-1.c. | expand

Commit Message

Iain Sandoe June 22, 2019, 7:58 p.m. UTC
This test was failing because of a pedantic warning that is unrelated to the
purpose of the test.  Fixed by suppressing that warning.

tested on powerpc-darwin9, applied to mainline.
thanks
Iain

2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic
	warning about _Bool.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c b/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
index 2f147d0..f444edf 100644
--- a/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
@@ -1,6 +1,8 @@ 
 /* Check that sizeof(bool) is 4 if we don't use special options. */
 /* Matt Austern  <austern@apple.com> */
 /* { dg-do run { target { powerpc*-*-darwin* && ilp32 } } } */
+/* We do need to suppress the ISO C doesn't support _Bool message tho.  */
+/* { dg-options "-Wno-pedantic" } */
 
 int dummy1[sizeof(_Bool) - 3];
 int dummy2[5 - sizeof(_Bool)];