101 lines · plain
1# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj2 3# RUN: lld-link -out:%t.dll -dll %t.obj 2>&1 \4# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s5# RUN: touch -t 198002011200.00 %t.lib6# RUN: lld-link -out:%t.dll -dll %t.obj7# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s8 9# RUN: lld-link -out:%t.dll -dll -incremental %t.obj 2>&1 \10# RUN: | FileCheck -allow-empty -check-prefix=WARN-REF %s11# RUN: touch -t 198002011200.00 %t.lib12# RUN: lld-link -out:%t.dll -dll -incremental %t.obj13# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s14 15# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj 2>&1 \16# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s17# RUN: touch -t 198002011200.00 %t.lib18# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj19# RUN: ls -l %t.lib | FileCheck -check-prefix=KEEP %s20 21# RUN: lld-link -out:%t.dll -dll -debug %t.obj 2>&1 \22# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s23# RUN: touch -t 198002011200.00 %t.lib24# RUN: lld-link -out:%t.dll -dll -debug %t.obj25# RUN: ls -l %t.lib | FileCheck -check-prefix=KEEP %s26 27# RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj 2>&1 \28# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s29# RUN: touch -t 198002011200.00 %t.lib30# RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj31# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s32 33# RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj 2>&1 \34# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s35# RUN: touch -t 198002011200.00 %t.lib36# RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj37# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s38 39# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,icf %t.obj 2>&1 \40# RUN: | FileCheck -check-prefix=WARN-ICF %s41# RUN: touch -t 198002011200.00 %t.lib42# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,icf %t.obj43# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s44 45# RUN: lld-link -out:%t.dll -dll -debug -opt:icf %t.obj 2>&1 \46# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s47# RUN: touch -t 198002011200.00 %t.lib48# RUN: lld-link -out:%t.dll -dll -debug -opt:icf %t.obj49# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s50 51# RUN: lld-link -out:%t.dll -dll -opt:ref %t.obj 2>&1 \52# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s53# RUN: touch -t 198002011200.00 %t.lib54# RUN: lld-link -out:%t.dll -dll -opt:ref %t.obj55# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s56 57# RUN: lld-link -out:%t.dll -dll -incremental -opt:ref %t.obj 2>&1 \58# RUN: | FileCheck -check-prefix=WARN-REF %s59# RUN: touch -t 198002011200.00 %t.lib60# RUN: lld-link -out:%t.dll -dll -incremental -opt:ref %t.obj61# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s62 63# RUN: touch %t.order64# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj \65# RUN: -order:@%t.order 2>&1 | FileCheck -check-prefix=WARN-ORDER %s66# RUN: touch -t 198002011200.00 %t.lib67# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf -order:@%t.order %t.obj68# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s69 70# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf %t.obj \71# RUN: -order:@%t.order 2>&1 | FileCheck -allow-empty -check-prefix=NOWARN %s72# RUN: touch -t 198002011200.00 %t.lib73# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf -order:@%t.order %t.obj74# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s75 76# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj \77# RUN: -profile 2>&1 | FileCheck -check-prefix=WARN-PROFILE %s78# RUN: touch -t 198002011200.00 %t.lib79# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf -profile %t.obj80# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s81 82# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf %t.obj \83# RUN: -profile 2>&1 | FileCheck -allow-empty -check-prefix=NOWARN %s84# RUN: touch -t 198002011200.00 %t.lib85# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf -profile %t.obj86# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s87 88# RUN: lld-link -out:%t.dll -dll -debug -opt:ref %t.obj 2>&1 \89# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s90# RUN: touch -t 198002011200.00 %t.lib91# RUN: lld-link -out:%t.dll -dll -debug -opt:ref %t.obj92# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s93 94# NOWARN-NOT: ignoring '/incremental'95# WARN-ICF: ignoring '/incremental' because ICF is enabled; use '/opt:noicf' to disable96# WARN-REF: ignoring '/incremental' because REF is enabled; use '/opt:noref' to disable97# WARN-ORDER: ignoring '/incremental' due to '/order' specification98# WARN-PROFILE: ignoring '/incremental' due to '/profile' specification99# KEEP: {{Feb 1 1980|Feb 01 1980|1980-02-01}}100# NOKEEP-NOT: {{Feb 1 1980|Feb 01 1980|1980-02-01}}101