Make this test less fragile
From-SVN: r26337
This commit is contained in:
parent
e9c6b69b61
commit
d6470dd07e
1 changed files with 4 additions and 4 deletions
|
@ -1,18 +1,18 @@
|
|||
/* Test that __LINE__ works when embedded in a macro. */
|
||||
/* { dg-do run } */
|
||||
|
||||
#define foo() bar(__LINE__)
|
||||
#define XLINE __LINE__
|
||||
|
||||
void
|
||||
bar(int x)
|
||||
bar(int x, int y)
|
||||
{
|
||||
if (x != 16)
|
||||
if (x != y)
|
||||
abort();
|
||||
}
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
foo(); /* This is line 16 */
|
||||
bar(XLINE, __LINE__);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue