llvm/clang/test/Driver/baremetal-multilib-group-error.yaml

# UNSUPPORTED: system-windows

# RUN: rm -rf %t

# RUN: mkdir -p %t/baremetal_multilib/bin
# RUN: ln -s %clang %t/baremetal_multilib/bin/clang

# RUN: mkdir -p %t/baremetal_multilib/lib/clang-runtimes
# RUN: ln -s %s %t/baremetal_multilib/lib/clang-runtimes/multilib.yaml

# RUN: %t/baremetal_multilib/bin/clang -no-canonical-prefixes -x c++ %s -### -o %t.out --target=thumbv7em-none-unknown-eabi --sysroot= 2>%t.err
# RUN: FileCheck %s < %t.err

---
MultilibVersion: 1.0

Groups:
- Name: group1
  Type: Nonsense

Variants:
- Dir: testdir1
  Flags: [--target=thumbv7m-none-unknown-eabi]
  Group: nonexistent_group_name

# CHECK: error: unknown enumerated scalar
# CHECK: error: multilib "testdir1" specifies undefined group name "nonexistent_group_name"