]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/return-type-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / return-type-2.c
diff --git a/gcc/testsuite/gcc.dg/return-type-2.c b/gcc/testsuite/gcc.dg/return-type-2.c
deleted file mode 100644 (file)
index 183c6a8..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Bogus warnings claiming we fall off the end of a non-void function.
-   By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/27/2000.  */
-/* { dg-do compile } */
-/* { dg-options "-O2 -Wreturn-type" } */
-
-extern void abort (void) __attribute__ ((__noreturn__));
-
-int
-foo1 (int i)
-{
-  if (i)
-    return i;
-
-  abort ();
-} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
-
-__inline__ int
-foo2 (int i)
-{
-  if (i)
-    return i;
-
-  abort ();
-} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
-
-static int
-foo3 (int i)
-{
-  if (i)
-    return i;
-
-  abort ();
-} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
-
-static __inline__ int
-foo4 (int i)
-{
-  if (i)
-    return i;
-
-  abort ();
-} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
-
-int bar (int i)
-{
-  return foo1 (i) + foo2 (i) + foo3 (i) + foo4 (i);
-}