]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/uninit-5.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / uninit-5.c
diff --git a/gcc/testsuite/gcc.dg/uninit-5.c b/gcc/testsuite/gcc.dg/uninit-5.c
deleted file mode 100644 (file)
index ac760d6..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Spurious uninitialized-variable warnings.
-   These cases are documented as not working in the gcc manual. */
-
-/* { dg-do compile } */
-/* { dg-options "-O -Wuninitialized" } */
-
-extern void use(int);
-extern void foo(void);
-
-void
-func1(int cond)
-{
-    int x;  /* { dg-bogus "x" "uninitialized variable warning" { xfail *-*-* } } */
-
-    if(cond)
-       x = 1;
-
-    foo();
-
-    if(cond)
-       use(x);
-}
-
-void
-func2 (int cond)
-{
-    int x;  /* { dg-bogus "x" "uninitialized variable warning" { xfail *-*-* } } */
-    int flag = 0;
-
-    if(cond)
-    {
-       x = 1;
-       flag = 1;
-    }
-
-    foo();
-
-    if(flag)
-       use(x);
-}