diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type.c b/gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type.c new file mode 100644 index 000000000..a122e5291 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type.c @@ -0,0 +1,5 @@ +/* PR c++/4872 */ +/* { dg-do compile } */ +/* { dg-options "-Wreturn-type" } */ + +static inline int f() {} /* { dg-warning "return" "missing return" } */ |