Heejin Ahn | feef720 | 2018-12-15 00:58:12 +0000 | [diff] [blame] | 1 | # 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 | # } |