# RUN: yaml2obj %s | obj2yaml | FileCheck %s
!Offload
Members:
  - ImageKind:        IMG_None
    OffloadKind:      OFK_None
  - ImageKind:        IMG_Object
    OffloadKind:      OFK_OpenMP
  - ImageKind:        IMG_Bitcode
    OffloadKind:      OFK_Cuda
  - ImageKind:        IMG_Cubin
    OffloadKind:      OFK_HIP
  - ImageKind:        IMG_Fatbinary
  - ImageKind:        IMG_PTX
  - ImageKind:        999
    OffloadKind:      999

#      CHECK:       --- !Offload
# CHECK-NEXT: Members:
# CHECK-NEXT:   - ImageKind:       IMG_None
# CHECK-NEXT:     OffloadKind:     OFK_None
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       IMG_Object
# CHECK-NEXT:     OffloadKind:     OFK_OpenMP
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       IMG_Bitcode
# CHECK-NEXT:     OffloadKind:     OFK_Cuda
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       IMG_Cubin
# CHECK-NEXT:     OffloadKind:     OFK_HIP
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       IMG_Fatbinary
# CHECK-NEXT:     OffloadKind:     OFK_None
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       IMG_PTX
# CHECK-NEXT:     OffloadKind:     OFK_None
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT:   - ImageKind:       0x3E7
# CHECK-NEXT:     OffloadKind:     0x3E7
# CHECK-NEXT:     Flags:           0
# CHECK-NEXT: ...
