Skip to content

Commit 23ed82d

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

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,22 @@ index 1f824b80bcd4..1025d3ee3026 100644
340340
getStreamer().emitELFSize(Sym, Expr);
341341
}
342342
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
343+
index 627002dd3578..95e9294f80f7 100644
344344
--- a/llvm/test/MC/WebAssembly/function-size-warning.s
345345
+++ b/llvm/test/MC/WebAssembly/function-size-warning.s
346-
@@ -12,4 +12,4 @@ foo:
346+
@@ -1,5 +1,4 @@
347+
-# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
348+
-# RUN: llvm-objdump -t %t.o
349+
+# RUN: not llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
350+
351+
foo:
352+
.functype foo () -> ()
353+
@@ -12,4 +11,4 @@ foo:
347354
# assembly files.
348355
.size foo, 0
349356

350357
-# CHECK: warning: .size directive ignored for function symbols
351-
+# CHECK-ERROR: error: .size directive ignored for function symbols
358+
+# CHECK: error: .size directive ignored for function symbols
352359
diff --git a/llvm/test/MC/WebAssembly/null-output.s b/llvm/test/MC/WebAssembly/null-output.s
353360
index fb15eecffc86..513e37d35039 100644
354361
--- a/llvm/test/MC/WebAssembly/null-output.s

0 commit comments

Comments
 (0)