Skip to content

Commit 90f3cbe

Browse files
committed
Expect error not warning for llvm test
1 parent c35b07f commit 90f3cbe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

overlays/patches/wasm/llvm/haskell-wasm-llvm-project.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,16 @@ index 1f824b80bcd4..1025d3ee3026 100644
339339
} else {
340340
getStreamer().emitELFSize(Sym, Expr);
341341
}
342+
diff --git a/llvm/test/MC/WebAssembly/function-size-warning.s b/llvm/test/MC/WebAssembly/function-size-warning.s
343+
index 627002dd3578..fd410d9ae67c 100644
344+
--- a/llvm/test/MC/WebAssembly/function-size-warning.s
345+
+++ b/llvm/test/MC/WebAssembly/function-size-warning.s
346+
@@ -12,4 +12,4 @@ foo:
347+
# assembly files.
348+
.size foo, 0
349+
350+
-# CHECK: warning: .size directive ignored for function symbols
351+
+# CHECK-ERROR: error: .size directive ignored for function symbols
342352
diff --git a/llvm/test/MC/WebAssembly/null-output.s b/llvm/test/MC/WebAssembly/null-output.s
343353
index fb15eecffc86..513e37d35039 100644
344354
--- a/llvm/test/MC/WebAssembly/null-output.s

0 commit comments

Comments
 (0)