brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 8f9e290 Raw
72 lines · yaml
1# UNSUPPORTED: system-windows2 3# RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -x c++ %s -### -o %t.out --target=thumbv7em-none-unknown-eabi --sysroot= 2>%t.err4 5# RUN: FileCheck %s < %t.err --check-prefix=POS6# RUN: FileCheck %s < %t.err --check-prefix=NEG7 8# Expected results:9#10# Due to the Mappings section, all six of these library directories should11# match the command-line flag --target=thumbv7em-none-unknown-eabi.12#13# The two "non_exclusive" directories, which don't have an ExclusiveGroup at14# all, should both be selected. So should the two "own_group", each of which15# specifies a different value of ExclusiveGroup. But the three "exclusive",16# which have the _same_ ExclusiveGroup value, should not: the third one wins.17# So we expect five of these seven directories to show up in the clang-cc118# command line, but not testdir1_exclusive or testdir2_exclusive.19 20# POS-DAG: "-internal-isystem" "[[SYSROOT:[^"]*]]/bin/../lib/clang-runtimes/testdir1_non_exclusive/include/c++/v1"21# POS-DAG: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/testdir2_non_exclusive/include/c++/v1"22# POS-DAG: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/testdir3_exclusive/include/c++/v1"23# POS-DAG: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/testdir1_own_group/include/c++/v1"24# POS-DAG: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/testdir2_own_group/include/c++/v1"25 26# NEG-NOT: "-internal-isystem" "{{[^"]*}}/bin/../lib/clang-runtimes/testdir1_exclusive/include/c++/v1"27# NEG-NOT: "-internal-isystem" "{{[^"]*}}/bin/../lib/clang-runtimes/testdir2_exclusive/include/c++/v1"28 29---30MultilibVersion: 1.031 32Groups:33- Name: actually_exclude_something34  Type: Exclusive35 36- Name: foo37  Type: Exclusive38 39- Name: bar40  Type: Exclusive41 42Variants:43- Dir: testdir1_non_exclusive44  Flags: [--target=thumbv7m-none-unknown-eabi]45 46- Dir: testdir2_non_exclusive47  Flags: [--target=thumbv7em-none-unknown-eabi]48 49- Dir: testdir1_exclusive50  Flags: [--target=thumbv7m-none-unknown-eabi]51  Group: actually_exclude_something52 53- Dir: testdir2_exclusive54  Flags: [--target=thumbv7em-none-unknown-eabi]55  Group: actually_exclude_something56 57- Dir: testdir3_exclusive58  Flags: [--target=thumbv7em-none-unknown-eabi]59  Group: actually_exclude_something60 61- Dir: testdir1_own_group62  Flags: [--target=thumbv7m-none-unknown-eabi]63  Group: foo64 65- Dir: testdir2_own_group66  Flags: [--target=thumbv7em-none-unknown-eabi]67  Group: bar68 69Mappings:70- Match: --target=thumbv7em-none-unknown-eabi71  Flags: [--target=thumbv7m-none-unknown-eabi]72