brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · baa101a Raw
26 lines · yaml
1## Test for FileHeader Flags.2 3## When FLAGS variable isn't defined, the e_flags value is 0.4## Otherwise, it's the specified value.5 6# RUN: yaml2obj %s -o %t7# RUN: llvm-readobj -h %t | FileCheck %s --check-prefixes=NO-FLAG8 9# RUN: yaml2obj %s -o %t -DFLAGS=[EF_SPARC_32PLUS]10# RUN: llvm-readobj -h %t | FileCheck %s --check-prefixes=FLAG11 12!ELF13FileHeader:14  Class:           ELFCLASS3215  Data:            ELFDATA2LSB16  Type:            ET_EXEC17  Machine:         EM_SPARC32PLUS18  Flags:           [[FLAGS=<none>]]19 20# NO-FLAG:         Flags [ (0x0)21# NO-FLAG-NEXT:    ]22 23# FLAG:            Flags [ (0x100)24# FLAG-NEXT:         EF_SPARC_32PLUS (0x100)25# FLAG-NEXT:       ]26