xref: /llvm-project/llvm/test/MC/WebAssembly/tabletype-invalid.s (revision af20c1c1298d15f36470cd9d5b2cccb3b9b59c30)
1# RUN: not llvm-mc -triple=wasm32 %s 2>&1 | FileCheck %s
2
3# CHECK: [[#@LINE+1]]:11: error: Expected identifier, got:
4.tabletype
5
6# CHECK: [[#@LINE+1]]:12: error: Expected identifier, got: 42
7.tabletype 42
8
9# CHECK: [[#@LINE+1]]:15: error: Expected ,, instead got:
10.tabletype sym
11
12# CHECK: [[#@LINE+1]]:16: error: Expected identifier, got:
13.tabletype sym,
14
15# CHECK: [[#@LINE+1]]:17: error: Expected identifier, got: 42
16.tabletype sym, 42
17
18# CHECK: [[#@LINE+1]]:17: error: Unknown type in .tabletype directive: i42
19.tabletype sym, i42
20
21# CHECK: [[#@LINE+1]]:21: error: Expected integer constant, instead got:
22.tabletype sym, i32,
23
24# CHECK: [[#@LINE+1]]:25: error: Expected integer constant, instead got:
25.tabletype sym, i32, 42,
26
27# CHECK: [[#@LINE+1]]:28: error: Expected EOL, instead got: ,
28.tabletype sym, i32, 42, 42,
29