Testcase for r188400.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 14 Aug 2013 19:45:27 +0000 (19:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 14 Aug 2013 19:45:27 +0000 (19:45 +0000)
llvm-svn: 188405

clang/test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so [new file with mode: 0644]
clang/test/Driver/gcc-version-debug.c [new file with mode: 0644]

diff --git a/clang/test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so b/clang/test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/libtest.so
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/clang/test/Driver/gcc-version-debug.c b/clang/test/Driver/gcc-version-debug.c
new file mode 100644 (file)
index 0000000..e0b5e3f
--- /dev/null
@@ -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