aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/section-metadata-err3.s
blob: 5c4875b9da5ee373a865ddca98d1c1e6f60a7f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# REQUIRES: x86

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s

# CHECK:      error: incompatible section flags for .bar
# CHECK-NEXT: >>> {{.*}}section-metadata-err3.s.tmp.o:(.bar): 0x2
# CHECK-NEXT: >>> output section .bar: 0x82

.section .foo,"a",@progbits
.quad 0

.section .bar,"ao",@progbits,.foo,unique,1
.quad 0

.section .bar,"a",@progbits,unique,2
.quad 1