Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wstrict-aliasing-6.C
blob2d1a95bde1295c4a43442a9f88a3b81364b7aab9
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
4 int foo ()
6   char buf[8];
7   return *((int *)buf); /* { dg-bogus "strict-aliasing" } */