aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/ELF/section-flags-changed.s
blob: d2964ef046d14db5cdc102907b43e63542ba6053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# RUN: not llvm-mc -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:

foo:
.section .foo,"ax",@progbits

# CHECK: {{.*}}.s:[[# @LINE+1]]:1: error: changed section flags for .foo, expected: 0x6
.section .foo,"awx",@progbits

# CHECK: {{.*}}.s:[[# @LINE+1]]:1: error: changed section flags for .foo, expected: 0x6
.pushsection .foo,"a",@progbits

# CHECK: {{.*}}.s:[[# @LINE+1]]:1: error: changed section flags for .foo, expected: 0x6
.section .foo,"",@progbits

.pushsection .foo,"ax",@progbits