[libcxx-commits] [libcxx] [libc++] Update container adaptors' tests (PR #224810)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 19 03:25:58 PDT 2026


================
@@ -8,15 +8,12 @@
 
 // <queue>
 
+// template <class T, class Container = deque<T>>
 // class queue
 
-// bool empty() const noexcept;
-
-// UNSUPPORTED: c++03, c++11, c++14, c++17
-
 #include <queue>
 
-void f() {
-  std::queue<int> c;
-  c.empty(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
----------------
Zingam wrote:

This is due to GH wrongly linking the empty.verify.cpp test, which was deleted and the new types.verify.cpp test.

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


More information about the libcxx-commits mailing list