Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / symbol-binding-changed.s
blobf8523e232f8b6d3ab863fcfb1a7874b02f99c5d7
1 # RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
3 # CHECK: {{.*}}.s:[[#@LINE+3]]:1: error: local changed binding to STB_GLOBAL
4 local:
5 .local local
6 .globl local
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
10 global:
11 .global global
12 .weak global
14 # CHECK: {{.*}}.s:[[#@LINE+3]]:1: error: weak changed binding to STB_LOCAL
15 weak:
16 .weak weak
17 .local weak
19 # CHECK-NOT: error:
20 multi_local:
21 .local multi_local
22 .local multi_local
23 multi_global:
24 .global multi_global
25 .global multi_global
26 multi_weak:
27 .weak multi_weak
28 .weak multi_weak