X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fc99-return-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fc99-return-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=017cf89a505ef36ab1cc5fda649ea18242cf1890;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/c99-return-1.c b/gcc/testsuite/gcc.dg/c99-return-1.c deleted file mode 100644 index 017cf89a..00000000 --- a/gcc/testsuite/gcc.dg/c99-return-1.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Test for constraints on return statements. */ -/* Origin: Joseph Myers */ -/* { dg-do compile } */ -/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ - -int -foo (void) -{ - return; /* { dg-bogus "warning" "warning in place of error" } */ - /* { dg-error "with no value" "return constraint violation" { target *-*-* } 9 } */ -} - -void -bar (void) -{ - return 1; /* { dg-bogus "warning" "warning in place of error" } */ - /* { dg-error "with a value" "return constraint violation" { target *-*-* } 16 } */ -}