aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/gcc-triple.cpp
blob: 17f045dae747409d0e269c43db1a542968148fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// UNSUPPORTED: system-windows

// RUN: %clang --target=x86_64-redhat-linux-gnu \
// RUN:   --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-redhat-linux -v 2>&1 | \
// RUN:   FileCheck %s --check-prefix=TRIPLE_EXISTS

// TRIPLE_EXISTS: {{^}}Selected GCC installation:
// TRIPLE_EXISTS: fedora_39_tree/usr/lib/gcc/x86_64-redhat-linux/13{{$}}

// RUN: %clang --target=x86_64-redhat-linux-gnu \
// RUN:   --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-gentoo-linux -v 2>&1 | \
// RUN:   FileCheck %s --check-prefix=TRIPLE_DOESNT_EXIST

// TRIPLE_DOESNT_EXIST-NOT: x86_64-gentoo-linux