1 // Test that debug info generated for auto-inserted deallocator is
2 // correctly attributed.
3 // This patch scans for the lineno directly from assembly, which may
4 // differ between different architectures. Because it mainly tests
5 // FE generated debug info, without losing generality, only x86
6 // assembly is scanned in this test.
7 // { dg-do compile { target { i?86-*-* x86_64-*-* } } }
8 // { dg-options "-O2 -fno-exceptions -gdwarf-2 -dA" }
22 for (int j = 0; j < 10; j++)
32 if (i) // Threader makes everything after here disappear.
43 // { dg-final { scan-assembler "deallocator.C:29" } }
44 // { dg-final { scan-assembler "deallocator.C:24" } }
45 // { dg-final { scan-assembler "deallocator.C:21" } }