* asan.c (create_cond_insert_point): Maintain profile.
[official-gcc.git] / gcc / testsuite / gcc.dg / misaligned-expand-2.c
blob7f6c6d19a2563db46495a0d132bea7097d630361
1 /* Test that expand can generate correct stores to misaligned data even on
2 strict alignment platforms. */
4 /* { dg-do run } */
5 /* { dg-options "-O0" } */
7 extern void abort ();
9 typedef unsigned int myint __attribute__((aligned(1)));
11 void
12 foo (myint *p, unsigned int i)
14 *p = i;
17 #define cst (int) 0xdeadbeef
18 #define NUM 8
20 struct blah
22 char c;
23 myint i[NUM];
26 struct blah g;
28 int
29 main (int argc, char **argv)
31 int k;
33 for (k = 0; k < NUM; k++)
35 foo (&g.i[k], cst);
36 if (g.i[k] != cst)
37 abort ();
39 return 0;