2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33919.c
blob14ea3746cf63da4aeeca3b274a199a2ed410b182
1 /* PR preprocessor/pr33919 */
2 /* { dg-do run } */
3 /* { dg-options "-I . -include ${srcdir}/gcc.dg/pr33919-0.h" } */
5 #include "pr33919-1.h"
7 const char *base_file = __BASE_FILE__;
9 extern int strcmp (const char *, const char *);
10 extern void abort (void);
12 int
13 main ()
15 if (!strcmp (pre_inc_base_file, "<command line>"))
16 abort ();
17 if (strcmp (pre_inc_base_file, __FILE__))
18 abort ();
19 if (strcmp (base_file, __FILE__))
20 abort ();
21 if (strcmp (inc_base_file, __FILE__))
22 abort ();
23 if (strcmp (nested_inc_base_file, __FILE__))
24 abort ();
25 return 0;