summaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-04 20:58:00 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-04 20:58:00 +0000
commit0e10155acbda6e076524298846a7c7ca096da4d9 (patch)
tree4c7428d746d13eda1eefd8d5c95a8910c276b8aa /libiberty/testsuite
parent863321b94724e7e0635d9a6963e6e6e4b1bd1f25 (diff)
downloadgcc-0e10155acbda6e076524298846a7c7ca096da4d9.tar.gz
* testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
declaration before statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97576 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/test-pexecute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libiberty/testsuite/test-pexecute.c b/libiberty/testsuite/test-pexecute.c
index c67bcefb8f6..dfb5413453e 100644
--- a/libiberty/testsuite/test-pexecute.c
+++ b/libiberty/testsuite/test-pexecute.c
@@ -208,11 +208,12 @@ main (int argc, char **argv)
do \
{ \
int err; \
+ const char *pex_run_err; \
if (trace) \
fprintf (stderr, "Line %d: running %s %s\n", \
__LINE__, EXECUTABLE, ARGV[0]); \
- const char *pex_run_err = pex_run (PEXOBJ, FLAGS, EXECUTABLE, \
- ARGV, OUTNAME, ERRNAME, &err); \
+ pex_run_err = pex_run (PEXOBJ, FLAGS, EXECUTABLE, ARGV, OUTNAME, \
+ ERRNAME, &err); \
if (pex_run_err != NULL) \
FATAL_ERROR (pex_run_err, err); \
} \