aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/WebAssembly/function-size-warning.s
blob: 627002dd35781587d277198d7d79d95a158760e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
# RUN: llvm-objdump -t %t.o

foo:
  .functype foo () -> ()
  i32.const 1
  drop
  end_function

# .size directives for functions are no longer required and will
# be ignored but we continue to allow them to support legacy
# assembly files.
.size foo, 0

# CHECK: warning: .size directive ignored for function symbols