aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-04-18 21:25:07 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2009-04-18 21:25:07 +0100
commit61cc82231be2c47c429b9b4ae8c18b3a4d13d12f (patch)
treee22c5191f2a3881126e43683cafcce7d76ad83ee /gcc
parent149ccdd45da46cb04df8efea654a52cf55573c87 (diff)
downloadgcc-61cc82231be2c47c429b9b4ae8c18b3a4d13d12f.zip
gcc-61cc82231be2c47c429b9b4ae8c18b3a4d13d12f.tar.gz
gcc-61cc82231be2c47c429b9b4ae8c18b3a4d13d12f.tar.bz2
directives.c (parse_include): Pass true to check_eol.
libcpp: * directives.c (parse_include): Pass true to check_eol. gcc/testsuite: * gcc.dg/cpp/include5.c: New test. From-SVN: r146327
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/include5.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 16197bc..0ccc20a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2009-04-18 Joseph Myers <joseph@codesourcery.com>
+ * gcc.dg/cpp/include5.c: New test.
+
+2009-04-18 Joseph Myers <joseph@codesourcery.com>
+
PR c/35210
* gcc.dg/call-diag-2.c: New test.
diff --git a/gcc/testsuite/gcc.dg/cpp/include5.c b/gcc/testsuite/gcc.dg/cpp/include5.c
new file mode 100644
index 0000000..9bbc287
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/include5.c
@@ -0,0 +1,9 @@
+/* Test #include directives with macros expanding to empty. */
+
+#define EMPTY_OBJ
+#define EMPTY_FUNC()
+
+#include <stddef.h> EMPTY_OBJ
+#include <stddef.h> EMPTY_FUNC()
+#include "stddef.h" EMPTY_OBJ
+#include "stddef.h" EMPTY_FUNC()