summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr36326.c
blob: 0611f7d8499b888c72cc396ad6b961901663da5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */

union X { int i; double x; };

int foo (union X *p)
{
  union X x = *p;
  return x.x;
}

/* { dg-final { scan-tree-dump-not "x.0" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */