From 9a668304de522995508023d022c2386b88cd897a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 12 Nov 2019 12:51:33 +0300 Subject: Disable miscompiled by Clang 9.0.0 package version tests --- tests/package-version/driver.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"); -- cgit v1.1