projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9c6b69
)
Make this test less fragile
author
Zack Weinberg
<zack@gcc.gnu.org>
Sat, 10 Apr 1999 14:20:44 +0000
(14:20 +0000)
committer
Zack Weinberg
<zack@gcc.gnu.org>
Sat, 10 Apr 1999 14:20:44 +0000
(14:20 +0000)
From-SVN: r26337
gcc/testsuite/gcc.dg/990409-1.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/990409-1.c
b/gcc/testsuite/gcc.dg/990409-1.c
index faa37e0de6ed2138fce4ce0fa481ae0d947193a2..cda9dd87ad8d827d9fe10343bf07bdc7ffe23504 100644
(file)
--- 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;
}