Wstrict-aliasing-converted-assigned.c: Fix syntax errors in dg-message directives...
authorJanis Johnson <janisjo@codesourcery.com>
Fri, 29 Jun 2012 03:55:21 +0000 (03:55 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Fri, 29 Jun 2012 03:55:21 +0000 (03:55 +0000)
* gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax
errors in dg-message directives, add comments.

From-SVN: r189061

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c

index 7d1b5321cb34083f20f0e1830c89a4f0e4070e9f..a04e28849c08c8fec861eb1f4653d86620cfe7ad 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-28  Janis Johnson  <janisjo@codesourcery.com>
+
+       * gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax
+       errors in dg-message directives, add comments.
+
 2012-06-28  Kai Tietz  <ktietz@redhat.com>
 
        * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of
index b77373d56bd1fa067059ee6ba8917d6746e2d2a0..06a8a376b8b47dc6a36c9d9f17324b56b2170a7a 100644 (file)
@@ -5,9 +5,11 @@
 int foo()
 {
   int i;
-  *(long*)&i = 0;  /* { dg-warning "type-punn" } */
+  *(long*)&i = 0;  /* { dg-warning "type-punn" "type-punn" } */
   return i;
 }
 
-/* { dg-message "does break strict-aliasing" "" { target { *-*-* && lp64 } xfail *-*-* } 8 } */
-/* { dg-message "initialized" "" { target { *-*-* && lp64 } xfail *-*-* } 8 } */
+/* These messages are only expected for lp64, but fail there.  When they
+   pass for lp64, replace "xfail *-*-*" with "target lp64".  */
+/* { dg-message "does break strict-aliasing" "break" { xfail *-*-* } 8 } */
+/* { dg-message "initialized" "init" { xfail *-*-* } 8 } */