view gcc/testsuite/g++.dg/opt/pr20931.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// PR middle-end
// This testcase ICEd because fold checking saw a type change which
// is allowed as TYPE_CONTAINS_PLACEHOLDER_INTERNAL could change.
// { dg-do compile }
// { dg-options "-O2" }
  
int
__finite (double __x) throw ()
{
  return (__extension__
   (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
      | 0x800fffffu) + 1) >> 31));
}