summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/mi3.c
blob: f33fd7887e9831c3602f4a191ec5bfbe3a237d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Another test case for over-eager multiple include optimization.
   This one distilled from glibc's setlocale.c and categories.def.  */
/* { dg-do compile } */

#define X a
#include "mi3.def"
#undef X

#define X b
#include "mi3.def"
#undef X

#include "mi3.h"
#include "mi3.h"  /* The second include declares variable c.  */

int
main(void)
{
  return a + b + c;
}