summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asan/pr105214.c
blob: a755336c7d8b50a182b0e456d6ec37fd34e24585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/105214 */
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
/* { dg-options "-Ofast -fnon-call-exceptions -fexceptions -fstack-check=generic -fsanitize=address -fno-finite-math-only -fsignaling-nans -fno-associative-math" } */

float f;
void bar (int *);

void
foo (void)
{
  int a[1600], b[1];
  f += __builtin_log1pf (f);
  bar (a);
  bar (b);
}