8sa1-gcc/gcc/testsuite/gcc.dg/cpp/mi3.c
Neil Booth 9f6ef6bcaf defined.c, [...]: New tests.
* gcc.dg/cpp/defined.c, include1.c, paste11.c, skipping.c:
	New tests.
	* gcc.dg/cpp/macsyntx.c: Move test to defined.c.
	* gcc.dg/cpp/mi3.c, mi3.h: New test for over-enthusiastic
	optimisation.

From-SVN: r37126
2000-10-29 17:43:57 +00:00

21 lines
367 B
C

/* 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;
}