forked from OSchip/llvm-project
19 lines
847 B
Plaintext
19 lines
847 B
Plaintext
rm %t.*.exe
|
|
RUN: yaml2obj %p/Inputs/generic.yaml -o %t.obj
|
|
RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.1.exe
|
|
RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.2.exe
|
|
RUN: lld-link %t.obj /debug /timestamp:0 /entry:main /nodefaultlib /out:%t.3.exe
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.1.exe | FileCheck %s --check-prefix=HASH
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.2.exe | FileCheck %s --check-prefix=HASH
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.3.exe | FileCheck %s --check-prefix=ZERO
|
|
|
|
HASH: ImageFileHeader {
|
|
HASH: TimeDateStamp: [[STAMP:.*]]
|
|
HASH: DebugDirectory [
|
|
HASH: TimeDateStamp: [[STAMP]]
|
|
|
|
ZERO: ImageFileHeader {
|
|
ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
|
|
ZERO: DebugDirectory [
|
|
ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
|