summaryrefslogtreecommitdiff
path: root/test/lit/stdin-stdout.wast
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-08-27 10:36:12 -0700
committerGitHub <noreply@github.com>2021-08-27 10:36:12 -0700
commitc2007eab91ed60ac4bc8a6a555e9dc3e76ef2242 (patch)
tree71255c327ca6e8b8bf5f09dc94a61dc82f0fa01c /test/lit/stdin-stdout.wast
parent83e70667d4b06885000d35d1d70b3f16363bf405 (diff)
downloadbinaryen-c2007eab91ed60ac4bc8a6a555e9dc3e76ef2242.tar.gz
binaryen-c2007eab91ed60ac4bc8a6a555e9dc3e76ef2242.tar.bz2
binaryen-c2007eab91ed60ac4bc8a6a555e9dc3e76ef2242.zip
Read from stdin when the input file is `-` (#4106)
We already supported `-` as meaning stdout for output and this is useful in similar situations. Fixes #4105.
Diffstat (limited to 'test/lit/stdin-stdout.wast')
-rw-r--r--test/lit/stdin-stdout.wast13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lit/stdin-stdout.wast b/test/lit/stdin-stdout.wast
new file mode 100644
index 000000000..8aa9fe89a
--- /dev/null
+++ b/test/lit/stdin-stdout.wast
@@ -0,0 +1,13 @@
+;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
+;; RUN: wasm-opt < %s - -S -o - | filecheck %s
+
+;; Test that file `-` is interpreted as stdin and stdout.
+
+(module
+ ;; CHECK: (func $foo
+ ;; CHECK-NEXT: (nop)
+ ;; CHECK-NEXT: )
+ (func $foo
+ (nop)
+ )
+)