mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
|
# Source file compiled:
|
||
|
##include <iostream>
|
||
|
# #include <typeinfo>
|
||
|
#template <class A>
|
||
|
#void foo(A variable) {
|
||
|
# std::cout << "foo is " << typeid(A).name() << "\n";
|
||
|
#}
|
||
|
#int main () {
|
||
|
# char x = 'x';
|
||
|
# int y = 1;
|
||
|
# foo(x);
|
||
|
# foo(y);
|
||
|
# return 0;
|
||
|
#}
|
||
|
|
||
|
RUN: llvm-readobj -g %p/Inputs/elf-groups.x86_64 \
|
||
|
RUN: | FileCheck %s
|
||
|
CHECK: Groups {
|
||
|
CHECK-NEXT: Group {
|
||
|
CHECK-NEXT: Name: .group (92)
|
||
|
CHECK-NEXT: Index: 1
|
||
|
CHECK-NEXT: Type: COMDAT (0x1)
|
||
|
CHECK-NEXT: Signature: _Z3fooIcEvT_
|
||
|
CHECK-NEXT: Section(s) in group [
|
||
|
CHECK-NEXT: .text._Z3fooIcEvT_ (10)
|
||
|
CHECK-NEXT: .rela.text._Z3fooIcEvT_ (11)
|
||
|
CHECK-NEXT: ]
|
||
|
CHECK-NEXT: }
|
||
|
CHECK-NEXT: Group {
|
||
|
CHECK-NEXT: Name: .group (92)
|
||
|
CHECK-NEXT: Index: 2
|
||
|
CHECK-NEXT: Type: COMDAT (0x1)
|
||
|
CHECK-NEXT: Signature: _Z3fooIiEvT_
|
||
|
CHECK-NEXT: Section(s) in group [
|
||
|
CHECK-NEXT: .text._Z3fooIiEvT_ (12)
|
||
|
CHECK-NEXT: .rela.text._Z3fooIiEvT_ (13)
|
||
|
CHECK-NEXT: ]
|
||
|
CHECK-NEXT: }
|
||
|
|