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

#define XLINE __LINE__

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

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