[libc][NFC] Remove extra ; in exhaustive_test.h. (#124216)
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / priority.queue / priqueue.members / empty.pass.cpp
blob9629bd9b16de763a739b6b1013280f47133b22c7
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <queue>
11 // priority_queue();
13 // bool empty() const;
15 #include <queue>
16 #include <cassert>
18 #include "test_macros.h"
20 int main(int, char**)
22 std::priority_queue<int> q;
23 assert(q.empty());
24 q.push(1);
25 assert(!q.empty());
26 q.pop();
27 assert(q.empty());
29 return 0;