summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46893.c
blob: ef97e2edfd2a5bf84f39dc1b7b9042bbaa88317f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR debug/46893 */
/* { dg-do compile } */
/* { dg-options "-O -g" } */

void
foo (void)
{
  union { unsigned long long l; double d; } u = { 0x7ff0000000000000ULL };
  double v = 0, w = -u.d;

  if (w)
    w = v;
}