diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 1999-04-10 14:20:44 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 1999-04-10 14:20:44 +0000 |
commit | d6470dd07edf86bea7fa918f483004d0b3a0c7c9 (patch) | |
tree | 48e1d0a1f8a23595bbb9f8cc2a95c6e1e476b225 /gcc | |
parent | e9c6b69b61b17c1aff79fa933eeacae3c11e2eff (diff) | |
download | gcc-d6470dd07edf86bea7fa918f483004d0b3a0c7c9.zip gcc-d6470dd07edf86bea7fa918f483004d0b3a0c7c9.tar.gz gcc-d6470dd07edf86bea7fa918f483004d0b3a0c7c9.tar.bz2 |
Make this test less fragile
From-SVN: r26337
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/990409-1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/990409-1.c b/gcc/testsuite/gcc.dg/990409-1.c index faa37e0..cda9dd8 100644 --- a/gcc/testsuite/gcc.dg/990409-1.c +++ b/gcc/testsuite/gcc.dg/990409-1.c @@ -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; } |