[libcxx-commits] [libcxx] Add a regression test for recent regression in pair. (PR #97355)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 2 05:30:07 PDT 2024


================
@@ -0,0 +1,15 @@
+// Check that instantiating pair doesn't look up type traits "too early", before
+// the contained types have been completed.
+//
+// This is a regression test, to prevent a reoccurrance of the issue introduced in
+// 5e1de27f680591a870d78e9952b23f76aed7f456.
+
+// expected-no-diagnostics
----------------
ldionne wrote:

Let's make this a `.compile.pass.cpp` test instead of `.verify.pass.cpp`, that way it can run under all compiler.

https://github.com/llvm/llvm-project/pull/97355


More information about the libcxx-commits mailing list