2 RUN: yaml2obj %p/Inputs/generic.yaml -o %t.obj
3 RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.1.exe
4 RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.2.exe
5 RUN: lld-link %t.obj /debug /timestamp:0 /entry:main /nodefaultlib /out:%t.3.exe
6 RUN: llvm-readobj --file-headers --coff-debug-directory %t.1.exe | FileCheck %s --check-prefix=HASH
7 RUN: llvm-readobj --file-headers --coff-debug-directory %t.2.exe | FileCheck %s --check-prefix=HASH
8 RUN: llvm-readobj --file-headers --coff-debug-directory %t.3.exe | FileCheck %s --check-prefix=ZERO
10 HASH: ImageFileHeader {
11 HASH: TimeDateStamp: [[STAMP:.*]]
12 HASH: DebugDirectory [
13 HASH: TimeDateStamp: [[STAMP]]
15 ZERO: ImageFileHeader {
16 ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
17 ZERO: DebugDirectory [
18 ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)