bolt/deps/llvm-18.1.8/llvm/test/MC/COFF/weak-uaf.ll

13 lines
307 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc --compile-twice -mtriple=x86_64-pc-win32 -filetype=obj < %s
; UAF when re-using the MCObjectWriter. does not leak into the output,
; but should be detectable with --compile-twice under ASAN or so.
define weak void @foo() nounwind {
ret void
}
define weak void @bar() nounwind {
ret void
}