/* Our friend the null directive OK? */
#
-/* Check that directives always start a line, even if in middle of
- macro expansion. */
-#define func(x) x
-func (2 /* { dg-error "unterminated argument" } */
-#define foobar /* { dg-error "may not be used inside" } */
-
-/* For tidiness, I think the directive should still be processed
- above. Certainly, continuing to try to find the closing ')' can
- lead to some really confusing error messages. Hence this test. */
-#ifndef foobar
-#error It is nice if the directive is processed!
-#endif
-
/* Check newlines end directives, even in function-like macro
invocations. 6.10 paragraph 1.
Note that the #if is still treated as a conditional, so there
should be no errors about #endif without #if. */
+#define func(x) x
#if func ( /* { dg-error "unterminated argument" } */
#endif