xref: /llvm-project/llvm/test/MC/WebAssembly/function-size-warning.s (revision c5c4ba37b19e14f3f4c9c1bf950d46e90602c084)
1# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
2# RUN: llvm-objdump -t %t.o
3
4foo:
5  .functype foo () -> ()
6  i32.const 1
7  drop
8  end_function
9
10# .size directives for functions are no longer required and will
11# be ignored but we continue to allow them to support legacy
12# assembly files.
13.size foo, 0
14
15# CHECK: warning: .size directive ignored for function symbols
16