libcpp:
* directives.c (parse_include): Pass true to check_eol.
gcc/testsuite:
* gcc.dg/cpp/include5.c: New test.
From-SVN: r146327
+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
--- /dev/null
+/* 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()
+2009-04-18 Joseph Myers <joseph@codesourcery.com>
+
+ * directives.c (parse_include): Pass true to check_eol.
+
2009-04-18 Joseph Myers <joseph@codesourcery.com>
PR preprocessor/39646
/* This pragma allows extra tokens after the file name. */
}
else if (buf == NULL || CPP_OPTION (pfile, discard_comments))
- check_eol (pfile, false);
+ check_eol (pfile, true);
else
{
/* If we are not discarding comments, then gather them while