[flang] match alternate names for crtbegin in fastmath test
authorTom Eccles <tom.eccles@arm.com>
Mon, 12 Dec 2022 11:28:21 +0000 (11:28 +0000)
committerTom Eccles <tom.eccles@arm.com>
Mon, 12 Dec 2022 11:28:21 +0000 (11:28 +0000)
The fastmath test checks that crtfastmath.o is added between crtbeginS.o
and crtend.o. On some systems the first file is instead called
crtbegin.o - match these too.

Related to https://reviews.llvm.org/D138675

flang/test/Driver/fast_math.f90

index 4427d1e..6a22815 100644 (file)
@@ -60,6 +60,6 @@
 ! UNSUPPORTED: system-windows, powerpc
 ! RUN: %flang -ffast-math -### %s -o %t 2>&1 \
 ! RUN:     | FileCheck --check-prefix=CHECK-CRT %s
-! CHECK-CRT: crtbeginS.o
+! CHECK-CRT: {{crtbegin.?\.o}}
 ! CHECK-CRT-SAME: crtfastmath.o
 ! CHECK-CRT-SAME: crtendS.o