]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make this test less fragile
authorZack Weinberg <zack@gcc.gnu.org>
Sat, 10 Apr 1999 14:20:44 +0000 (14:20 +0000)
committerZack 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

index faa37e0de6ed2138fce4ce0fa481ae0d947193a2..cda9dd87ad8d827d9fe10343bf07bdc7ffe23504 100644 (file)
@@ -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;
 }