OSDN Git Service

fix PR45121
authordavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jul 2010 17:20:05 +0000 (17:20 +0000)
committerdavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jul 2010 17:20:05 +0000 (17:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162687 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/uninit-17.c

index 35415a3..88092cf 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-29  Xinliang David Li  <davidxl@google.com>
+       PR tree-optimization/45121
+       * c-c++-common/uninit-17.c: Fix expected output.
+
 2010-07-29  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/45120
index 6282962..d78305d 100644 (file)
@@ -9,9 +9,9 @@ static void bar(int a, int *ptr)
 {
   do
   {
-    int b; /* { dg-warning "is used uninitialized" } */
+    int b;   /* { dg-message "declared" } */
     if (b < 40) {
-      ptr[0] = b;
+      ptr[0] = b; /* { dg-warning "may be used uninitialized" } */
     }
     b += 1;
     ptr++;