summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr28651.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr28651.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr28651.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28651.c b/gcc/testsuite/gcc.c-torture/execute/pr28651.c
index 1262f9f625e..e7ccf8e26cc 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr28651.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr28651.c
@@ -1,5 +1,5 @@
extern void abort (void);
-int
+int __attribute__((noinline))
foo (unsigned int u)
{
return (int)(u + 4) < (int)u;
@@ -8,14 +8,7 @@ foo (unsigned int u)
int
main (int argc, char *argv[])
{
- unsigned int u;
-
- /* Run with no arguments so u will be MAX_INT and the optimizers
- won't know its value. */
- if (argc > 1)
- u = 1;
- else
- u = 0x7fffffff;
+ unsigned int u = 0x7fffffff;
if (foo (u) == 0)
abort();