# REQUIRES: !system-aix
# RUN: yaml2obj -DCLASS=ELFCLASS32 %s -o %t_elf32.o
# RUN: yaml2obj -DCLASS=ELFCLASS64 %s -o %t_elf64.o
--- !ELF
FileHeader:
Class: [[CLASS]]
Data: ELFDATA2LSB
Type: ET_REL
Symbols:
- Name: [[CLASS]]_var
## Test that the environment variable "OBJECT_MODE" is ignored on non-AIX OS.
# RUN: env OBJECT_MODE=32 llvm-nm --format=just-symbols %t_elf32.o %t_elf64.o | \
# RUN: FileCheck %s -DFILE1=%t_elf32.o -DFILE2=%t_elf64.o --match-full-lines
# RUN: env OBJECT_MODE=64 llvm-nm --format=just-symbols %t_elf32.o %t_elf64.o | \
# RUN: FileCheck %s -DFILE1=%t_elf32.o -DFILE2=%t_elf64.o --match-full-lines
# CHECK: [[FILE1]]:
# CHECK-NEXT: ELFCLASS32_var
# CHECK-EMPTY:
# CHECK-NEXT: [[FILE2]]:
# CHECK-NEXT: ELFCLASS64_var