]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/warn/oldcast1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / warn / oldcast1.C
diff --git a/gcc/testsuite/g++.dg/warn/oldcast1.C b/gcc/testsuite/g++.dg/warn/oldcast1.C
deleted file mode 100644 (file)
index 26c0a5c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// { dg-do compile }
-// { dg-options "-ansi -pedantic-errors -Wold-style-cast" }
-
-// Copyright (C) 2001 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 26 Dec 2001 <nathan@codesourcery.com>
-
-// PR 5089. old style cast to void should be permitted (think assert)
-
-void foo ()
-{
-  int i;
-  float f = (float)i;  // { dg-warning "use of old-style cast" "" }
-
-  (void)i;
-}
-