blob: bb008ffac49ce8465dfc481f1b59fd9fe4a9223a [file] [log] [blame]
Heejin Ahnfeef7202018-12-15 00:58:12 +00001# RUN: not obj2yaml %p/Inputs/WASM/invalid-section-order.wasm 2>&1 | FileCheck %s
2# CHECK: {{.*}}: Out of order section type: 10
3
4# Inputs/WASM/invalid-section-order.wasm is generated from this ll file, by
5# modifying WasmObjectWriter to incorrectly write the data section before the
6# code section.
7#
8# target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
9# target triple = "wasm32-unknown-unknown"
10#
11# @data = global i32 0, align 4
12#
13# define void @foo() {
14# entry:
15# ret void
16# }