1 /* Contributed by Nicholas Ormrod */
2 /* Origin: PR preprocessor/60723 */
3 
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.
11 
12    { dg-do compile }
13    { dg-options -no-integrated-cpp }  */
14 
15 #include "syshdr4.h"
FOO()16 FOO(
17 )
18 
19 int
20 foo()
21 {
22   return 1 / 0; /* { dg-warning "div-by-zero" } */
23   return 0;
24 }
25