* gcc.c-torture/execute/pr36321.c: Don't rely on argv[0] being set.
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2008 19:14:07 +0000 (19:14 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2008 19:14:07 +0000 (19:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142170 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr36321.c

index 7d040e1..1e13cdc 100644 (file)
@@ -1,3 +1,7 @@
+2008-11-24  DJ Delorie  <dj@redhat.com>
+
+       * gcc.c-torture/execute/pr36321.c: Don't rely on argv[0] being set.
+
 2008-11-24  Mikael Morin  <mikael.morin@tele2.fr>
 
        PR fortran/38184
index 37d64f3..1edf8e4 100644 (file)
@@ -16,9 +16,11 @@ void foo(char *str)
     }
 }
 
+static char * volatile argp = "pr36321.x";
+
 int main(int argc, char **argv)
 {
-  foo (argv[0]);
+  foo (argp);
   return 0;
 }