xref: /llvm-project/lld/test/wasm/relocatable-options.test (revision 48219d06b1de6023a6b9dc8c137fdbc0d7089514)
1; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.o
2; RUN: not wasm-ld -o %t.wasm --relocatable --export-table %t.o 2>&1 | FileCheck %s --check-prefix=EXPORT
3; RUN: not wasm-ld -o %t.wasm --relocatable --growable-table %t.o 2>&1 | FileCheck %s --check-prefix=GROWABLE
4
5; EXPORT: error: --relocatable is incompatible with --export-table
6; GROWABLE: error: --relocatable is incompatible with --growable-table
7