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 f(T t)8template <class T> void f(T t) { } 9 main()10int main() 11 { 12 f(42); 13 } 14