File: incremental.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (100 lines) | stat: -rw-r--r-- 4,736 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj

# RUN: lld-link -out:%t.dll -dll %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -incremental %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=WARN-REF %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=KEEP %s

# RUN: lld-link -out:%t.dll -dll -debug %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -debug %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=KEEP %s

# RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,icf %t.obj 2>&1 \
# RUN:   | FileCheck -check-prefix=WARN-ICF %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,icf %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -debug -opt:icf %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -debug -opt:icf %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -opt:ref %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -opt:ref %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -incremental -opt:ref %t.obj 2>&1 \
# RUN:   | FileCheck -check-prefix=WARN-REF %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental -opt:ref %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: touch %t.order
# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj \
# RUN:   -order:@%t.order 2>&1 | FileCheck -check-prefix=WARN-ORDER %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf -order:@%t.order %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf %t.obj \
# RUN:   -order:@%t.order 2>&1 | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf -order:@%t.order %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj \
# RUN:   -profile 2>&1 | FileCheck -check-prefix=WARN-PROFILE %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf -profile %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf %t.obj \
# RUN:   -profile 2>&1 | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -opt:noref,noicf -profile %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# RUN: lld-link -out:%t.dll -dll -debug -opt:ref %t.obj 2>&1 \
# RUN:   | FileCheck -allow-empty -check-prefix=NOWARN %s
# RUN: touch -t 198002011200.00 %t.lib
# RUN: lld-link -out:%t.dll -dll -debug -opt:ref %t.obj
# RUN: ls -l %t.lib | FileCheck -check-prefix=NOKEEP %s

# NOWARN-NOT: ignoring '/incremental'
# WARN-ICF: ignoring '/incremental' because ICF is enabled; use '/opt:noicf' to disable
# WARN-REF: ignoring '/incremental' because REF is enabled; use '/opt:noref' to disable
# WARN-ORDER: ignoring '/incremental' due to '/order' specification
# WARN-PROFILE: ignoring '/incremental' due to '/profile' specification
# KEEP: {{Feb 1 1980|Feb 01 1980|1980-02-01}}
# NOKEEP-NOT: {{Feb 1 1980|Feb 01 1980|1980-02-01}}