view gcc/testsuite/g++.dg/ubsan/pr89234.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

// PR rtl-optimization/89234
// { dg-do compile { target dfp } }
// { dg-options "-O2 -fnon-call-exceptions -fsanitize=null" }

typedef float __attribute__((mode (SD))) _Decimal32;

void
foo (_Decimal32 *b, _Decimal32 c)
{
  *b = c + 1.5;
}