Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / store_merging_1.c
blob4cc43dfd9e17ddc0984bd263708a96a8be1fd035
1 /* { dg-do compile } */
2 /* { dg-require-effective-target store_merge } */
3 /* { dg-options "-O2 -fdump-tree-store-merging" } */
5 struct bar {
6 int a;
7 char b;
8 char c;
9 char d;
10 char e;
11 char f;
12 char g;
15 void
16 foo1 (struct bar *p)
18 p->b = 0;
19 p->a = 0;
20 p->c = 0;
21 p->d = 0;
22 p->e = 0;
25 void
26 foo2 (struct bar *p)
28 p->b = 0;
29 p->a = 0;
30 p->c = 1;
31 p->d = 0;
32 p->e = 0;
35 /* { dg-final { scan-tree-dump-times "Merging successful" 2 "store-merging" } } */