tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wstrict-aliasing-2.C
blob713b35461cf72d65dfe4b5c45b79e831012ade2e
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
4 double x;
6 template <typename T>
7 T *foo(void)
9   return (T *)&x; /* { dg-bogus "strict-aliasing" } */
12 template double *foo<double>(void);