Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 7 Apr 2012 22:09:42 +0000 (22:09 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 7 Apr 2012 22:09:42 +0000 (22:09 +0000)
2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
directives.

From-SVN: r186216

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C

index 77436679ee0b6e9c63f88a1cf5a8f80630091087..abe15aedb41e34457ed1497c8eeb53a85bb3be1a 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
+       directives.
+
 2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/52893
index 103248da4875f24bcc38726aafeb822fec3d4295..9027061c5b81ff70efc7816adcf61ae23f406671 100644 (file)
@@ -4,9 +4,9 @@
 
 int foo() {
   int x;
-  float& q = reinterpret_cast<float&> (x);  /* { dg-message "dereferencing type-punned" "" { target *-*-* } } */
-  q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */
+  float& q = reinterpret_cast<float&> (x);  /* { dg-message "dereferencing type-punned" "deref" { target *-*-* } } */
+  q = 1.0; /* { dg-warning "does break strict-aliasing" "strict-aliasing" { xfail *-*-* } } */
   return x;
 }
 
-/* { dg-message "initialized" "" { xfail *-*-* } 7 } */
+/* { dg-message "initialized" "note" { xfail *-*-* } 7 } */