diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-27 23:27:05 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-27 23:27:05 +0000 |
commit | 5147341983f283d3c3b7c44c5cba0e606199b148 (patch) | |
tree | 6f03f1b44bdcd2f96651b5255c4c315c59247d21 /gcc/testsuite/gcc.dg/pr12603.c | |
parent | b9d267cded99d26ad0d7353dda571fde008d18d6 (diff) | |
download | gcc-5147341983f283d3c3b7c44c5cba0e606199b148.tar.gz |
Merge from mainline rev 141397.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@141398 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr12603.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr12603.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr12603.c b/gcc/testsuite/gcc.dg/pr12603.c new file mode 100644 index 00000000000..d0a4835cb1e --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr12603.c @@ -0,0 +1,8 @@ +/* PR 12603: No return statement warning on function that never returns with -O3. */ +/* { dg-do compile } */ +/* { dg-options "-O3 -Wall -Wextra -Wreturn-type -Wunreachable-code" } */ +int +this_function_never_returns () +{ + for (;;); +} |