summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/wasm/start_section.yaml
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-05-09 17:51:38 +0000
committerSam Clegg <sbc@chromium.org>2017-05-09 17:51:38 +0000
commita0efcfe92b9e12be83c80878ce83e18fe8234c3d (patch)
tree41776d1630092ce30107c9a9906daa85e1f07610 /llvm/test/ObjectYAML/wasm/start_section.yaml
parent073c4e66b01d8f9f66a1c7b660d926a8b2748665 (diff)
downloadbcm5719-llvm-a0efcfe92b9e12be83c80878ce83e18fe8234c3d.tar.gz
bcm5719-llvm-a0efcfe92b9e12be83c80878ce83e18fe8234c3d.zip
[WebAssembly] Fix validation of start function
The check for valid start function was inverted. Added a new test in test/Object to check this case and fixed the existing tests in for ObjectYAML. Differential Revision: https://reviews.llvm.org/D32986 llvm-svn: 302560
Diffstat (limited to 'llvm/test/ObjectYAML/wasm/start_section.yaml')
-rw-r--r--llvm/test/ObjectYAML/wasm/start_section.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/ObjectYAML/wasm/start_section.yaml b/llvm/test/ObjectYAML/wasm/start_section.yaml
index 41301a62003..38feebcdf99 100644
--- a/llvm/test/ObjectYAML/wasm/start_section.yaml
+++ b/llvm/test/ObjectYAML/wasm/start_section.yaml
@@ -1,8 +1,17 @@
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
+
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
+ - Type: TYPE
+ Signatures:
+ - ReturnType: I32
+ ParamTypes:
+ - F32
+ - F32
+ - Type: FUNCTION
+ FunctionTypes: [ 0, 0, 0 ]
- Type: START
StartFunction: 1
...
OpenPOWER on IntegriCloud