[lldb][test] TestCPP20Standard.py: skip on older compilers
authorMichael Buch <michaelbuch12@gmail.com>
Mon, 24 Apr 2023 16:04:18 +0000 (12:04 -0400)
committerMichael Buch <michaelbuch12@gmail.com>
Mon, 24 Apr 2023 16:05:20 +0000 (12:05 -0400)
Requires C++20 support (at least for the spaceship operator).
Seems to work back to Clang-11

lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py

index dbca909..017e621 100644 (file)
@@ -4,6 +4,7 @@ from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 
 class TestCPP20Standard(TestBase):
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_cpp20(self):
         """
         Tests that we can evaluate an expression in C++20 mode