[test] Clean up Driver/baremetal.cpp
authorFangrui Song <i@maskray.me>
Mon, 3 Oct 2022 22:35:18 +0000 (15:35 -0700)
committerFangrui Song <i@maskray.me>
Mon, 3 Oct 2022 22:35:18 +0000 (15:35 -0700)
commitdef48cae45a5085b7759f2be71768e27718b901a
treecdb6be9dd16cca7dc8f0556d47a97ae314ca8e52
parentb70d2d57cd6719138ae6ca2dc66bc0b8490585e4
[test] Clean up Driver/baremetal.cpp

* Remove -no-canonical-prefixes. See 980679981fbc311bc07f8cd23e3739fd56c22d2a
* Test a.out and %t.out in few tests and remove excess `-o %t.o`
* Avoid wrapping lines too aggresstively
* Replace `"{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}"` with `ld{{(.exe)?}}"`. The new pattern supports more CLANG_DEFAULT_LINKER.
clang/test/Driver/baremetal.cpp