diff options
author | DJ Delorie <dj@redhat.com> | 2008-11-24 14:14:07 -0500 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2008-11-24 14:14:07 -0500 |
commit | 60b5c18d0fb1be258d78271cb0f397086aff5edc (patch) | |
tree | b0bf3da5a9b4ffc84242b8f22a2be7aa778c5a16 /gcc | |
parent | 6e7cc036d23e3eba474a083d8b1348b9252ff870 (diff) | |
download | gcc-60b5c18d0fb1be258d78271cb0f397086aff5edc.zip gcc-60b5c18d0fb1be258d78271cb0f397086aff5edc.tar.gz gcc-60b5c18d0fb1be258d78271cb0f397086aff5edc.tar.bz2 |
* gcc.c-torture/execute/pr36321.c: Don't rely on argv[0] being set.
From-SVN: r142170
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr36321.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d040e1..1e13cdc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr36321.c b/gcc/testsuite/gcc.c-torture/execute/pr36321.c index 37d64f3..1edf8e4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr36321.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr36321.c @@ -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; } |