diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-12 12:51:33 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-12 12:51:33 +0300 |
commit | 9a668304de522995508023d022c2386b88cd897a (patch) | |
tree | df53e8fed3b10e4e1c0b7037a6387896afa81e90 /tests/package-version/driver.cxx | |
parent | 857d9566ffd4dfc572831fa3cc04e0394c0d7e92 (diff) |
Disable miscompiled by Clang 9.0.0 package version tests
Diffstat (limited to 'tests/package-version/driver.cxx')
-rw-r--r-- | tests/package-version/driver.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/package-version/driver.cxx b/tests/package-version/driver.cxx index 5cf7e09..4ecaa57 100644 --- a/tests/package-version/driver.cxx +++ b/tests/package-version/driver.cxx @@ -304,6 +304,14 @@ namespace bpkg assert (v.canonical_release == "~"); assert (test_constructor (v)); } + + // Miscompiled by Clang 9.0.0 (see Clang bug report #43710 for details). + // +#if !(defined(__clang__) && \ + __clang_major__ == 9 && \ + __clang_minor__ == 0 && \ + __clang_patchlevel__ == 0) + { version v (2, "1", nullopt, 2, 0); assert (v.string () == "+2-1+2"); @@ -318,6 +326,9 @@ namespace bpkg assert (v.canonical_release.empty ()); assert (test_constructor (v)); } + +#endif + { version v (3, "2.0", nullopt, 3, 4); assert (v.string (false, false) == "+3-2.0+3#4"); |