1// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
2// RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s
3
4// CHECK:      error: incompatible section flags for .foo
5// CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.foo): 0x3
6// CHECK-NEXT: >>> output section .foo: 0x403
7
8// CHECK:      error: incompatible section flags for .bar
9// CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.bar): 0x403
10// CHECK-NEXT: >>> output section .bar: 0x3
11
12.section .foo, "awT", @progbits, unique, 1
13.quad 0
14
15.section .foo, "aw", @progbits, unique, 2
16.quad 0
17
18
19.section .bar, "aw", @progbits, unique, 3
20.quad 0
21
22.section .bar, "awT", @progbits, unique, 4
23.quad 0
24