PR preprocessor/60723 - missing system-ness marks for macro tokens
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / syshdr4.c
blobfe001d2ed0ea8234177e30b850e62179979e1693
1 /* Contributed by Nicholas Ormrod */
2 /* Origin: PR preprocessor/60723 */
4 /* This tests that multi-line macro callsites, which are defined
5 in system headers and whose expansion contains a builtin followed
6 by a non-builtin token, do not generate a line directive that
7 mark the current file as being a system file, when performing
8 non-integrated preprocessing. */
9 /* System files suppress div-by-zero warnings, so the presence of
10 such indicates the lack of the bug.
12 { dg-do compile }
13 { dg-options -no-integrated-cpp } */
15 #include "syshdr4.h"
16 FOO(
19 int
20 foo()
22 return 1 / 0; /* { dg-warning "div-by-zero" } */
23 return 0;