Fix dg-warning in gcc.dg/alias-8.c
authorH.J. Lu <hongjiu.lu@intel.com>
Sat, 30 May 2015 15:36:59 +0000 (15:36 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 30 May 2015 15:36:59 +0000 (08:36 -0700)
* gcc.dg/alias-8.c: Fix dg-warning.

From-SVN: r223887

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/alias-8.c

index 9dea7c2..45ae35b 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gcc.dg/alias-8.c: Fix dg-warning.
+
 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
 
        * gcc.dg/alias-8.c: Do not xfail.
index b99873e..690f1b6 100644 (file)
@@ -8,5 +8,5 @@ struct s {
 void
 func(struct s *ptr)
 {
-  *(void **)&ptr->p = 0; /* { dg-warning "type-punned pointer" "" { } } */
+  *(void **)&ptr->p = 0; /* { dg-warning "type-punned pointer" } */
 }