diff options
author | Neil Booth <neilb@earthling.net> | 2000-10-29 17:43:57 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-10-29 17:43:57 +0000 |
commit | 9f6ef6bcaf5716524e0b97c9ae07cdb885858cf3 (patch) | |
tree | 866bc0a0d9329f355ba4833ecdfb5908e7e5b5e4 /gcc/testsuite/gcc.dg/cpp/include1.c | |
parent | 8c7b74b9393310aa17ef1c4360f0375a882b2500 (diff) | |
download | gcc-9f6ef6bcaf5716524e0b97c9ae07cdb885858cf3.zip gcc-9f6ef6bcaf5716524e0b97c9ae07cdb885858cf3.tar.gz gcc-9f6ef6bcaf5716524e0b97c9ae07cdb885858cf3.tar.bz2 |
defined.c, [...]: New tests.
* gcc.dg/cpp/defined.c, include1.c, paste11.c, skipping.c:
New tests.
* gcc.dg/cpp/macsyntx.c: Move test to defined.c.
* gcc.dg/cpp/mi3.c, mi3.h: New test for over-enthusiastic
optimisation.
From-SVN: r37126
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/include1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/include1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/include1.c b/gcc/testsuite/gcc.dg/cpp/include1.c new file mode 100644 index 0000000..a0a54e0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/include1.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ + +/* Tests that "#include MACRO" works. */ + +/* Source: Neil Booth, 29 Oct 2000. */ + +#define MACRO "mi1c.h" +#include MACRO +#ifndef CPP_MIC_H +#error #include MACRO does not work +#endif |