xref: /llvm-project/llvm/test/MC/COFF/weak-uaf.ll (revision c71d77876f52eae52312ce130b5f0c1472b0699b)
1; RUN: llc --compile-twice -mtriple=x86_64-pc-win32 -filetype=obj < %s
2
3; UAF when re-using the MCObjectWriter. does not leak into the output,
4; but should be detectable with --compile-twice under ASAN or so.
5
6define weak void @foo() nounwind {
7  ret void
8}
9
10define weak void @bar() nounwind {
11  ret void
12}
13