]> granicus.if.org Git - clang/commitdiff
supply a simple-minded testcase for r156813, to check whether the embedded montavista...
authorGabor Greif <ggreif@gmail.com>
Wed, 30 May 2012 09:56:26 +0000 (09:56 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 30 May 2012 09:56:26 +0000 (09:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157686 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/crtbegin.o [new file with mode: 0644]
test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/libgcc.a [new file with mode: 0644]
test/Driver/montavista-gcc-toolchain.c [new file with mode: 0644]

diff --git a/test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/crtbegin.o b/test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/crtbegin.o
new file mode 100644 (file)
index 0000000..26d251d
--- /dev/null
@@ -0,0 +1 @@
+dummy file for gcc toolchain detection (crtbegin.o)
diff --git a/test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/libgcc.a b/test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/libgcc.a
new file mode 100644 (file)
index 0000000..d796928
--- /dev/null
@@ -0,0 +1 @@
+dummy file for gcc toolchain detection (libgcc.a)
diff --git a/test/Driver/montavista-gcc-toolchain.c b/test/Driver/montavista-gcc-toolchain.c
new file mode 100644 (file)
index 0000000..b9ab729
--- /dev/null
@@ -0,0 +1,9 @@
+// Test that the montavista gcc-toolchain is correctly detected
+//
+// RUN: %clang -print-libgcc-file-name 2>&1 \
+// RUN:     -target i686-montavista-linux \
+// RUN:     -gcc-toolchain %S/Inputs/montavista_i686_tree/usr \
+// RUN:   | FileCheck %s
+
+// Test for header search toolchain detection.
+// CHECK: montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/libgcc.a