aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/990409-1.c
blob: c7bfa617212d743249f885e6ac2c344595384b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Test that __LINE__ works when embedded in a macro. */
/* { dg-do run } */

extern void abort (void);

#define XLINE __LINE__

void
bar(int x, int y)
{
    if (x != y)
	abort();
}

int
main(void)
{
    bar(XLINE, __LINE__);
    return 0;
}