From 8c53669a2d934f0aff7c6f63958b7be6a258a3c7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 19 Feb 2012 02:23:50 +0000 Subject: [PATCH] Add an extra CHECK line to make sure TOOLCHAIN2 matches just the path prefix. llvm-svn: 150905 --- clang/test/Driver/gcc-toolchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/test/Driver/gcc-toolchain.cpp b/clang/test/Driver/gcc-toolchain.cpp index 2b616d47a6a9..a8d4f4cdb6bb 100644 --- a/clang/test/Driver/gcc-toolchain.cpp +++ b/clang/test/Driver/gcc-toolchain.cpp @@ -19,7 +19,8 @@ // CHECK: "/include" // CHECK: "-internal-externc-isystem" // CHECK: "/usr/include" -// CHECK: "{{.*}}/ld +// CHECK: "{{.*}}/ld{{(.exe)?}}" +// CHECK: "crti.o" // CHECK: "[[TOOLCHAIN2:.*]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/crtbegin.o" // CHECK: "-L[[TOOLCHAIN2]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5" // CHECK: "-L[[TOOLCHAIN2]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../.."