Skip to content

Commit d749f30

Browse files
feedback
Created using spr 1.3.6
1 parent 5b8936b commit d749f30

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

llvm/test/MC/COFF/stdin.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# RUN: echo "// comment" > %t.input
2+
# RUN: which llvm-mc | %python %s %t
3+
4+
import subprocess
5+
import sys
6+
7+
llvm_mc_binary = sys.stdin.readlines()[0].strip()
8+
temp_file = sys.argv[1]
9+
input_file = temp_file + ".input"
10+
11+
with open(temp_file, "w") as mc_stdout:
12+
mc_stdout.seek(4)
13+
subprocess.run(
14+
[llvm_mc_binary, "-filetype=obj", "-triple", "i686-pc-win32", input_file],
15+
stdout=mc_stdout,
16+
check=True,
17+
)

llvm/test/MC/COFF/stdin.s

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)