Skip to content

Commit 2d37722

Browse files
committed
Add a test
1 parent a37da1a commit 2d37722

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
;; This test runs thin LTO with cache only to look for memory errors, either
2+
;; as crashes or sanitizer errors. MCAsmStreamer has specific assumptions about
3+
;; the lifetime of the output stream that are easy to overlook (see #138194).
4+
5+
; RUN: rm -rf %t.cache
6+
; RUN: opt -module-hash -module-summary -thinlto-bc %s -o %t1.bc
7+
; RUN: ld.lld --thinlto-cache-dir=%t.cache --lto-emit-asm %t1.bc
8+
9+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10+
target triple = "x86_64-unknown-linux-gnu"
11+
12+
define void @globalfunc() {
13+
entry:
14+
ret void
15+
}

0 commit comments

Comments
 (0)