summaryrefslogtreecommitdiff
path: root/test/tools/llvm-nm/wasm/exports.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/llvm-nm/wasm/exports.yaml')
-rw-r--r--test/tools/llvm-nm/wasm/exports.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/tools/llvm-nm/wasm/exports.yaml b/test/tools/llvm-nm/wasm/exports.yaml
new file mode 100644
index 0000000000000..f219c5b3ce1d0
--- /dev/null
+++ b/test/tools/llvm-nm/wasm/exports.yaml
@@ -0,0 +1,22 @@
+# RUN: yaml2obj < %s | llvm-nm - | FileCheck %s
+
+--- !WASM
+FileHeader:
+ Version: 0x00000001
+Sections:
+ - Type: TYPE
+ Signatures:
+ - ReturnType: I32
+ ParamTypes:
+ - I32
+ - Type: EXPORT
+ Exports:
+ - Name: foo
+ Kind: FUNCTION
+ Index: 0x00000000
+ - Name: bar
+ Kind: GLOBAL
+ Index: 0x00000000
+
+# CHECK: 00000001 D bar
+# CHECK: 00000000 T foo