diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-27 11:31:55 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-27 11:31:55 +0000 |
commit | 53ea50ea0050dbb03b0a34ae5db4e1c6193d2d3d (patch) | |
tree | 28545f40a581570ca5d9ad5adf96ce72bc4c49ca /gcc/testsuite/gcc.dg/O16384.c | |
parent | 4272a2e82e431ac85afd0404d49b28043dc480ee (diff) | |
download | gcc-53ea50ea0050dbb03b0a34ae5db4e1c6193d2d3d.tar.gz |
* opts.c (decode_options): If optimize is bigger than 255,
set it to 255.
* gcc.dg/O16384.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154699 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/O16384.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/O16384.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/O16384.c b/gcc/testsuite/gcc.dg/O16384.c new file mode 100644 index 00000000000..32e17d4e68d --- /dev/null +++ b/gcc/testsuite/gcc.dg/O16384.c @@ -0,0 +1,15 @@ +/* Test insane -O argument. */ +/* { dg-do compile } */ +/* { dg-options "-O16384" } */ + +__attribute__((__optimize__(16396), __noinline__)) void +foo (void) +{ +} + +int +main (void) +{ + foo (); + return 0; +} |