blob: 325a329f34313ca26902dd48f1cb6f13ad5bc1cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
typedef struct { char f[4]; } __attribute__((aligned (4))) s;
void a(s *s1, s *s2)
{
*s1 = *s2;
}
/* Struct copies should not be split into members. */
/* { dg-final { scan-tree-dump "\\\*s1_.\\\(D\\\) = \\\*s2" "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|