From: Dmitri Gribenko Date: Mon, 7 Jan 2013 23:55:47 +0000 (+0000) Subject: Correct OpenBSD profiling test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c117f39a772a3f1e42915d79916013e9fa9f29a9;p=clang Correct OpenBSD profiling test The test should be looking for gcrt0.o not crt0.o. Clang was already printing "gcrt0", but the test was looking for "{{.*}}crt0.o", and the .* regexp consumed "g". Patch by Brad Smith. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171815 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/openbsd.c b/test/Driver/openbsd.c index 5bd85f6cb2..4fd5b6a41b 100644 --- a/test/Driver/openbsd.c +++ b/test/Driver/openbsd.c @@ -6,7 +6,7 @@ // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -pg -pthread %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-PG %s // CHECK-PG: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd" -// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lpthread_p" "-lc_p" "-lgcc" "{{.*}}crtend.o" +// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}gcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lpthread_p" "-lc_p" "-lgcc" "{{.*}}crtend.o" // Check that the new linker flags are passed to OpenBSD // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -r %s -### 2>&1 \