xref: /llvm-project/clang/test/Driver/gcc-triple.cpp (revision 6684a09ca84b44f320052a77cb01cb4216e6511b)
1*6684a09cSTom Stellard // UNSUPPORTED: system-windows
2*6684a09cSTom Stellard 
3*6684a09cSTom Stellard // RUN: %clang --target=x86_64-redhat-linux-gnu \
4*6684a09cSTom Stellard // RUN:   --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-redhat-linux -v 2>&1 | \
5*6684a09cSTom Stellard // RUN:   FileCheck %s --check-prefix=TRIPLE_EXISTS
6*6684a09cSTom Stellard 
7*6684a09cSTom Stellard // TRIPLE_EXISTS: {{^}}Selected GCC installation:
8*6684a09cSTom Stellard // TRIPLE_EXISTS: fedora_39_tree/usr/lib/gcc/x86_64-redhat-linux/13{{$}}
9*6684a09cSTom Stellard 
10*6684a09cSTom Stellard // RUN: %clang --target=x86_64-redhat-linux-gnu \
11*6684a09cSTom Stellard // RUN:   --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-gentoo-linux -v 2>&1 | \
12*6684a09cSTom Stellard // RUN:   FileCheck %s --check-prefix=TRIPLE_DOESNT_EXIST
13*6684a09cSTom Stellard 
14*6684a09cSTom Stellard // TRIPLE_DOESNT_EXIST-NOT: x86_64-gentoo-linux
15