forked from OSchip/llvm-project
31 lines
856 B
Plaintext
31 lines
856 B
Plaintext
# RUN: yaml2obj %p/Inputs/alternatename1.obj.yaml > %t1.obj
|
|
# RUN: yaml2obj %p/Inputs/alternatename2.obj.yaml > %t2.obj
|
|
# RUN: yaml2obj %p/Inputs/alternatename3.obj.yaml > %t3.obj
|
|
#
|
|
# RUN: lld -flavor link /out:%t1.exe /alternatename:_main=_foo -- %t1.obj
|
|
# RUN: llvm-objdump -d %t1.exe | FileCheck -check-prefix=CHECK1 %s
|
|
#
|
|
# RUN: lld -flavor link /out:%t2.exe /alternatename:_main=_foo -- %t1.obj %t2.obj
|
|
# RUN: llvm-objdump -d %t2.exe | FileCheck -check-prefix=CHECK2 %s
|
|
#
|
|
# RUN: lld -flavor link /out:%t3.exe -- %t3.obj
|
|
# RUN: llvm-objdump -d %t3.exe | FileCheck -check-prefix=CHECK3 %s
|
|
|
|
CHECK1: nop
|
|
CHECK1-NEXT: nop
|
|
CHECK1-NEXT: nop
|
|
CHECK1-NEXT: nop
|
|
CHECK1-NOT: int3
|
|
|
|
CHECK2-NOT: nop
|
|
CHECK2: int3
|
|
CHECK2-NEXT: int3
|
|
CHECK2-NEXT: int3
|
|
CHECK2-NEXT: int3
|
|
|
|
CHECK3: nop
|
|
CHECK3-NEXT: nop
|
|
CHECK3-NEXT: nop
|
|
CHECK3-NEXT: nop
|
|
CHECK3-NOT: int3
|