X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2FWshadow-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2FWshadow-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=63808aa9c8973f598c410c6bd676c82cd4d4a4d4;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/Wshadow-1.c b/gcc/testsuite/gcc.dg/Wshadow-1.c deleted file mode 100644 index 63808aa9..00000000 --- a/gcc/testsuite/gcc.dg/Wshadow-1.c +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. */ - -/* { dg-do compile } */ -/* { dg-options "-Wshadow -pedantic-errors" } */ - -/* Source: Neil Booth, 5 Dec 2001. */ - -int decl1; /* { dg-warning "shadowed declaration" } */ -void foo (double decl1) /* { dg-warning "shadows a global decl" } */ -{ -} - -void foo1 (int d) -{ - double d; /* { dg-bogus "warning" "warning in place of error" } */ - /* { dg-error "shadows a parameter" "" { target *-*-* } 15 } */ -} - -void foo2 (int d) /* { dg-warning "shadowed declaration" } */ -{ - { - double d; /* { dg-warning "shadows a parameter" } */ - } -} - -void foo3 () -{ - int local; /* { dg-warning "shadowed declaration" } */ - { - int local; /* { dg-warning "shadows a previous local" } */ - } -}