aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr105094.c
blob: da6dc172a64e45280d1e072d27ef65087b7fcbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/105094 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

struct S { short a; char b[~(__SIZE_TYPE__)0 / __CHAR_BIT__ - 1]; };
void bar (struct S *);

void
foo (void)
{
  struct S s = { 5 };
  bar (&s);
}