| 1 |
## This test checks that DIE name with stripped template parameters |
| 2 |
## is stored into .debug_name section. |
| 3 |
|
| 4 |
## cat dwarf5-accel.cpp |
| 5 |
## |
| 6 |
## template<typename A> void foo() {}; |
| 7 |
## |
| 8 |
## int main ( void ) { |
| 9 |
## foo<char>(); |
| 10 |
## return 0; |
| 11 |
## } |
| 12 |
|
| 13 |
## $ clang -gdwarf-5 dwarf5-accel.cpp -c -o dwarf5-accel.o |
| 14 |
|
| 15 |
#RUN: dsymutil -accelerator=Dwarf -oso-prepend-path %p/Inputs -y %s -o %t.dSYM |
| 16 |
#RUN: llvm-dwarfdump --verify %t.dSYM | FileCheck %s --check-prefix VERIFY |
| 17 |
#RUN: llvm-dwarfdump -a --verbose %t.dSYM | FileCheck %s |
| 18 |
|
| 19 |
#VERIFY: No errors. |
| 20 |
|
| 21 |
#CHECK: .debug_names |
| 22 |
#CHECK: "foo" |
| 23 |
#CHECK: _Z3fooIcEvv |
| 24 |
#CHECK: "foo<char>" |
| 25 |
|
| 26 |
--- |
| 27 |
triple: 'x86_64-apple-darwin' |
| 28 |
objects: |
| 29 |
- filename: 'dwarf5-accel.o' |
| 30 |
timestamp: 1676048242 |
| 31 |
symbols: |
| 32 |
- { sym: _main, objAddr: 0x0000000000000000, binAddr: 0x0000000100000AB0, size: 0x00000008 } |
| 33 |
- { sym: __Z3fooIcEvv, objAddr: 0x0000000000000020, binAddr: 0x0000000100000BB0, size: 0x00000008 } |