From f2a19daac18f5254542cd1506ddfab61db7827c7 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 14 Aug 2013 19:45:27 +0000 Subject: [PATCH] Testcase for r188400. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188405 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../debian_multiarch_tree/lib/i386-linux-gnu/libtest.so | 0 test/Driver/gcc-version-debug.c | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so create mode 100644 test/Driver/gcc-version-debug.c diff --git a/test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so b/test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/Driver/gcc-version-debug.c b/test/Driver/gcc-version-debug.c new file mode 100644 index 0000000000..e0b5e3f1f8 --- /dev/null +++ b/test/Driver/gcc-version-debug.c @@ -0,0 +1,6 @@ +// RUN: %clang -v --target=i386-unknown-linux \ +// RUN: --sysroot=%S/Inputs/debian_multiarch_tree 2>&1 | FileCheck %s + +// CHECK: Found candidate GCC installation: {{.*}}Inputs/debian_multiarch_tree/usr/lib/gcc/i686-linux-gnu/4.5 +// CHECK-NEXT: Found candidate GCC installation: {{.*}}Inputs/debian_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.5 +// CHECK-NEXT: Selected GCC installation: {{.*}}Inputs/debian_multiarch_tree/usr/lib/gcc/i686-linux-gnu/4.5 -- 2.40.0