[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / queue / queue.defn / empty.pass.cpp
blob844e7ce8e9638dc6bbc1ac5f20281e1b3cab9bd9
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 // bool empty() const;
13 #include <queue>
14 #include <cassert>
16 #include "test_macros.h"
18 int main(int, char**)
20 std::queue<int> q;
21 assert(q.empty());
22 q.push(1);
23 assert(!q.empty());
24 q.pop();
25 assert(q.empty());
27 return 0;