ld/testsuite: handle Windows drive letter in a noinit test
authorClément Chigot <chigot@adacore.com>
Wed, 18 Jan 2023 13:44:39 +0000 (14:44 +0100)
committerClément Chigot <chigot@adacore.com>
Mon, 20 Feb 2023 14:24:00 +0000 (15:24 +0100)
commita38cd00799f54973983ac9bfadbca915d02e85ef
treecd53a7ce0b544cd1b627e85a3e8450a04d969348
parentdf937aa12a387ea743eb413a719253ec0ffe131b
ld/testsuite: handle Windows drive letter in a noinit test

The regexp in "noinit sections (ld -r)" is skipping the file path before
the first ":". However, on Windows, a path can start with "C:". Adjust
the regexp to allow such cases.

ld/ChangeLog:

* testsuite/ld-elf/noinit-sections-2.l: Allow Windows paths
(starting with C:).
ld/testsuite/ld-elf/noinit-sections-2.l