================
@@ -62,8 +62,9 @@ class UncheckedExpectedAccessTest
   //   for an unchecked error access on that line.
   void ExpectDiagnosticsFor(std::string SourceCode) {
     // `tl::expected` is usable since C++17, and `std::expected` since C++23.
-    for (const char *CxxMode : {"-std=c++17", "-std=c++23"})
-      ExpectDiagnosticsFor(SourceCode, CxxMode);
+    if (GetParam().NamespaceName == "tl")
+      ExpectDiagnosticsFor(SourceCode, "-std=c++17");
----------------
BaLiKfromUA wrote:

Changed this because C++17 fails to parse concepts' `requires` from  C++20.

But I still want to run `tl:expected` testing both under C++17 and C++23

https://github.com/llvm/llvm-project/pull/244872
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to