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
This commit is contained in:
parent
19db9631bc
commit
9f0b9edcd7
|
@ -1,3 +1,10 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue