From 5642f5d5d5e3f6867cbe4b7b6fb1588365514c9c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 24 Sep 2010 16:14:40 +0100 Subject: common.opt (undef): New. * common.opt (undef): New. testsuite: * gcc.dg/cpp/undef-opt-1.c: New test. From-SVN: r164599 --- gcc/testsuite/gcc.dg/cpp/undef-opt-1.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/cpp/undef-opt-1.c (limited to 'gcc/testsuite/gcc.dg') diff --git a/gcc/testsuite/gcc.dg/cpp/undef-opt-1.c b/gcc/testsuite/gcc.dg/cpp/undef-opt-1.c new file mode 100644 index 0000000..99c5246 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/undef-opt-1.c @@ -0,0 +1,8 @@ +/* Test -undef. A bug in its handling broke glibc builds because + "linux" was wrongly defined. */ +/* { dg-do preprocess } */ +/* { dg-options "-undef" } */ + +#ifdef linux +#error -undef broken +#endif -- cgit v1.1