diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-14 15:05:37 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-14 15:05:37 +0000 |
commit | 37e73141e7148113c6b59cfd78ba8ce0ee209766 (patch) | |
tree | 20968c4e7e215aa730f7e9df4ecadcb432fb6e56 /gcc/testsuite/gcc.c-torture/execute/pr28651.c | |
parent | 1106eb8231f2890ea81a70c3362f1c2719bb771a (diff) | |
download | gcc-37e73141e7148113c6b59cfd78ba8ce0ee209766.tar.gz |
2006-08-14 Richard Guenther <rguenther@suse.de>
PR testsuite/28703
* gcc.c-torture/execute/pr28651.c: Do not use argc
to avoid optimization, instead forbid inlining.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr28651.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr28651.c | 11 |
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(); |