gcc/testsuite/gcc.dg/asan/pr105214.c
raw| 1 | /* PR target/105214 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */ |
| 4 | /* { dg-options "-Ofast -fnon-call-exceptions -fexceptions -fstack-check=generic -fsanitize=address -fno-finite-math-only -fsignaling-nans -fno-associative-math" } */ |
| 5 | |
| 6 | float f; |
| 7 | void bar (int *); |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | int a[1600], b[1]; |
| 13 | f += __builtin_log1pf (f); |
| 14 | bar (a); |
| 15 | bar (b); |
| 16 | } |