diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-24 11:37:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-24 11:37:22 +0200 |
commit | beb827d154cdc96dfe3042034bb301f6134f4259 (patch) | |
tree | d65c078506a5dd551ce557da13121caec33dd91a /tests | |
parent | dfb4e3b363ec39c0b1744d9edbf7b2ed89b04ad7 (diff) |
Add target_triplet::representation() in addition to string()
Also stop stripping `none-` prefix from the system component.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/target-triplet/driver.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx index 0bb305e..36131a6 100644 --- a/tests/target-triplet/driver.cxx +++ b/tests/target-triplet/driver.cxx @@ -61,6 +61,14 @@ main () "arm-eabi", "arm", "", "eabi", "")); + assert (test ("arm-unknown-none-eabi", + "arm-none-eabi", + "arm", "", "none-eabi", "")); + + assert (test ("arm-none", + "arm-none", + "arm", "", "none", "")); + assert (test ("arm-none-linux-gnueabi", "arm-linux-gnueabi", "arm", "", "linux-gnueabi", "", "linux")); @@ -93,15 +101,7 @@ main () "x86_64-netbsd", "x86_64", "", "netbsd", "", "bsd")); - // Removal of none-. - // - assert (test ("arm-none", - "arm-none", - "arm", "", "none", "")); - - assert (test ("arm-unknown-none-eabi", - "arm-eabi", - "arm", "", "eabi", "")); + // Version extraction. // |