aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/incompatible-section-types.s
blob: 0d075aca068b2112c0a6b430c65ceed020250dc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s

// CHECK: error: Section has different type from others with the same name {{.*}}incompatible-section-types.s.tmp.o:(.foo)

.section .foo, "aw", @progbits, unique, 1
.quad 0

.section .foo, "aw", @nobits, unique, 2
.quad 0