2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Apr 2012 22:09:42 +0000 (22:09 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Apr 2012 22:09:42 +0000 (22:09 +0000)
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
directives.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186216 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 7743667..abe15ae 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 103248d..9027061 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 } */