gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C
raw| 1 | // Test that we don't add the x86 PC thunk to .debug_ranges |
| 2 | // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } |
| 3 | // { dg-require-effective-target fpic } |
| 4 | // { dg-skip-if "darwin doesn't use the thunk for PIC" { *-*-darwin* } } |
| 5 | // { dg-options "-g -fpic -fno-dwarf2-cfi-asm" } |
| 6 | // { dg-final { scan-assembler-times "LFB3" 5 } } |
| 7 | |
| 8 | template <class T> void f(T t) { } |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | f(42); |
| 13 | } |