1# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
2
3# CHECK: {{.*}}.s:[[#@LINE+3]]:1: error: local changed binding to STB_GLOBAL
4local:
5.local local
6.globl local
7
8## `.globl x; .weak x` matches the GNU as behavior. We issue a warning for now.
9# CHECK: {{.*}}.s:[[#@LINE+3]]:1: warning: global changed binding to STB_WEAK
10global:
11.global global
12.weak global
13
14# CHECK: {{.*}}.s:[[#@LINE+3]]:1: error: weak changed binding to STB_LOCAL
15weak:
16.weak weak
17.local weak
18
19# CHECK-NOT: error:
20multi_local:
21.local multi_local
22.local multi_local
23multi_global:
24.global multi_global
25.global multi_global
26multi_weak:
27.weak multi_weak
28.weak multi_weak
29