summaryrefslogtreecommitdiff
path: root/test/tools/llvm-nm/wasm/imports.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/llvm-nm/wasm/imports.yaml')
-rw-r--r--test/tools/llvm-nm/wasm/imports.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tools/llvm-nm/wasm/imports.yaml b/test/tools/llvm-nm/wasm/imports.yaml
new file mode 100644
index 0000000000000..3842d678ca7fb
--- /dev/null
+++ b/test/tools/llvm-nm/wasm/imports.yaml
@@ -0,0 +1,25 @@
+# RUN: yaml2obj < %s | llvm-nm - | FileCheck %s
+
+--- !WASM
+FileHeader:
+ Version: 0x00000001
+Sections:
+ - Type: TYPE
+ Signatures:
+ - ReturnType: I32
+ ParamTypes:
+ - I32
+ - Type: IMPORT
+ Imports:
+ - Module: env
+ Field: foo
+ Kind: FUNCTION
+ SigIndex: 0
+ - Module: env
+ Field: bar
+ Kind: GLOBAL
+ GlobalType: I32
+ GlobalMutable: false
+
+# CHECK: U bar
+# CHECK: U foo