[Transforms] Silence a warning in SROA.cpp (NFC)
[llvm-project.git] / llvm / test / MC / ELF / section-gnu.s
blob573153bf7f4ef19bcd2969b5696e4b5e0fd0d8f5
1 # REQUIRES: aarch64-registered-target
2 # RUN: llvm-mc -triple=x86_64 %s | FileCheck %s --check-prefix=ASM
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=GNU,OBJ,OBJ-GNU
4 # RUN: llvm-mc -filetype=obj -triple=aarch64-freebsd %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=FREEBSD,OBJ,OBJ-GNU
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-solaris %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=SOLARIS,OBJ,OBJ-SOLARIS
7 # ASM: .section retain,"aR",@progbits
9 ## ELFOSABI_NONE is changed to ELFOSABI_GNU. Other OSABI values are unchanged.
10 # GNU: OS/ABI: GNU/Linux
11 # FREEBSD: OS/ABI: FreeBSD
12 # SOLARIS: OS/ABI: Solaris
14 # OBJ: Name: retain
15 # OBJ-NEXT: Type: SHT_PROGBITS
16 # OBJ-NEXT: Flags [
17 # OBJ-NEXT: SHF_ALLOC
18 # OBJ-GNU-NEXT: SHF_GNU_RETAIN
19 # OBJ-SOLARIS-NEXT: SHF_SUNW_NODISCARD
20 # OBJ-NEXT: ]
22 .section retain,"aR",@progbits