diff options
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/comdat.ll')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/comdat.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/comdat.ll b/llvm/test/CodeGen/WebAssembly/comdat.ll new file mode 100644 index 00000000000..6a83ae87e14 --- /dev/null +++ b/llvm/test/CodeGen/WebAssembly/comdat.ll @@ -0,0 +1,5 @@ +; RUN: not llc -mtriple wasm32-unknown-unknown-wasm %s 2>&1 | FileCheck %s + +$f = comdat any +@f = global i32 0, comdat +; CHECK: LLVM ERROR: WebAssembly doesn't support COMDATs, 'f' cannot be lowered. |

