gcc/testsuite/g++.dg/lto/pr118785_0.C
raw| 1 | // { dg-lto-do link } |
| 2 | // { dg-require-effective-target fpic } |
| 3 | // { dg-lto-options { "-O3 -flto -fPIC" } } |
| 4 | |
| 5 | void WriteLiteral( unsigned long data, unsigned long bits) {} |
| 6 | void WriteQIndexDelta( short qDelta) |
| 7 | { |
| 8 | WriteLiteral(__builtin_abs(qDelta), 4); |
| 9 | } |
| 10 | __attribute((used)) |
| 11 | void ff(signed char *qIndexDeltaLumaDC) { |
| 12 | WriteQIndexDelta(*qIndexDeltaLumaDC); |
| 13 | } |
| 14 | int main(){} |