gcc/testsuite/gcc.dg/pr124454-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target fopenmp } */ |
| 3 | /* { dg-additional-options "-O3 -fno-forward-propagate -fnon-call-exceptions -fno-dse -fprofile-generate -fopenmp -finstrument-functions" } */ |
| 4 | /* { dg-additional-options "-mno-outline-atomics" { target aarch64*-*-* } } */ |
| 5 | |
| 6 | /* PR rtl-optimization/124454 */ |
| 7 | |
| 8 | int a, b; |
| 9 | |
| 10 | void |
| 11 | foo() |
| 12 | { |
| 13 | long c; |
| 14 | a *= b; |
| 15 | b = *(char *)__builtin_memset(&c, 1, 4); |
| 16 | } |