Commit 9f0b9edc by Richard Sandiford Committed by Richard Sandiford

pr28289.c (one): New variable.

gcc/testsuite/
	* gcc.c-torture/execute/pr28289.c (one): New variable.
	(main): Use it instead of argc.
	* gcc.c-torture/execute/20060102-1.c (one): New variable.
	(main): Use it instead of argc.

From-SVN: r117060
parent 19db9631
2006-09-19 Richard Sandiford <richard@codesourcery.com>
* gcc.c-torture/execute/pr28289.c (one): New variable.
(main): Use it instead of argc.
* gcc.c-torture/execute/20060102-1.c (one): New variable.
(main): Use it instead of argc.
2006-09-19 Paul Brook <paul@codesourcery.com>
PR target/28516
......@@ -5,11 +5,12 @@ int f(int x)
return (x >> 31) ? -1 : 1;
}
int main (int argc)
volatile int one = 1;
int main (void)
{
/* Test that the function above returns different values for
different signs. */
if (f(argc) == f(-argc))
if (f(one) == f(-one))
abort ();
return 0;
}
......
......@@ -18,10 +18,11 @@ ix86_split_ashr (int mode)
: gen_x86_64_shrd) (0);
}
volatile int one = 1;
int
main (int argc, char **argv)
main (void)
{
ix86_split_ashr (argc);
ix86_split_ashr (one);
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment