testsuite:
* gcc.dg/cpp/trad/escaped-nl.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55135
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-07-01 Neil Booth <neil@daikokuya.co.uk>
+
+ * cpptrad.c (skip_whitespace): Pass pointer to prior char.
+
2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
out--;
if (c == '\\' && is_vspace (*cur))
{
- cur = skip_escaped_newlines (pfile, cur);
+ cur = skip_escaped_newlines (pfile, cur - 1);
continue;
}
+2002-07-01 Neil Booth <neil@daikokuya.co.uk>
+
+ * gcc.dg/cpp/trad/escaped-nl.c: New test.
+
2002-06-30 Devang Patel <dpatel@apple.com>
* objc.dg/fsyntax-only.m: New test.
--- /dev/null
+/* Test escaped newlines at start of macro definition are properly
+ skipped (buglet in skip_whitespace () in cpptrad.c). */
+
+/* { dg-do preprocess } */
+
+#define NUM \
+100
+#if NUM != 100
+# error NUM not defined properly /* { dg-bogus "error" } */
+#endif