1 // Test that the montavista gcc-toolchain is correctly detected
2 //
3 // RUN: %clang -print-libgcc-file-name 2>&1 \
4 // RUN:     --target=i686-montavista-linux \
5 // RUN:     --gcc-toolchain=%S/Inputs/montavista_i686_tree/usr \
6 // RUN:   | FileCheck %s
7 
8 // Test for header search toolchain detection.
9 // CHECK: montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0{{/|\\}}libgcc.a
10