[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / incompatible-section-flags.s
blob30bbe75d766ad39576232c6407e3ec0388b5c2b8
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
5 // CHECK: error: incompatible section flags for .foo
6 // CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.foo): 0x3
7 // CHECK-NEXT: >>> output section .foo: 0x403
9 // CHECK: error: incompatible section flags for .bar
10 // CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.bar): 0x403
11 // CHECK-NEXT: >>> output section .bar: 0x3
13 .section .foo, "awT", @progbits, unique, 1
14 .quad 0
16 .section .foo, "aw", @progbits, unique, 2
17 .quad 0
20 .section .bar, "aw", @progbits, unique, 3
21 .quad 0
23 .section .bar, "awT", @progbits, unique, 4
24 .quad 0