summaryrefslogtreecommitdiff
path: root/llvm/test/MC/COFF/weak-uaf.ll
blob: d0df144358c953ed9a9965d024c8412124809556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; 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
}