This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix gcc.dg/cpp/isysroot-2.c failure
- From: "Ben Elliston" <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 26 Nov 2004 12:27:13 +1100
- Subject: Fix gcc.dg/cpp/isysroot-2.c failure
Devang's isysroot-2.c test is meant to only run on Darwin systems.
His test case attempts to restrict the targets the test is run on, but
didn't quite get it right.
Okay for mainline?
2004-11-26 Ben Elliston <bje@au.ibm.com>
* gcc.dg/cpp/isysroot-2.c: Move target selector from dg-options to
dg-do directive.
Index: isysroot-2.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/testsuite/gcc.dg/cpp/isysroot-2.c,v
retrieving revision 1.2
diff -u -p -r1.2 isysroot-2.c
--- isysroot-2.c 24 Nov 2004 17:47:29 -0000 1.2
+++ isysroot-2.c 26 Nov 2004 01:25:23 -0000
@@ -1,5 +1,5 @@
-/* { dg-options "-isysroot ${srcdir}/gcc.dg/cpp" { target *-*-darwin* } } */
-/* { dg-do compile } */
+/* { dg-options "-isysroot ${srcdir}/gcc.dg/cpp" } */
+/* { dg-do compile { target *-*-darwin* } } */
#include <Carbon/Carbon.h>
int main()