diff options
| -rw-r--r-- | gcc/testsuite/gcc.dg/Wreturn-type2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wreturn-type2.c b/gcc/testsuite/gcc.dg/Wreturn-type2.c new file mode 100644 index 0000000..d57a914 --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wreturn-type2.c @@ -0,0 +1,7 @@ +/* Test for cases that should not get the unconditional warning about + missing return. */ +/* { dg-do compile } */ + +f() {} /* { dg-bogus "" "no return warning" } */ +int g() { abort (); } /* { dg-bogus "" "no return warning" } */ +int main() {} /* { dg-bogus "" "no return warning" } */ |
