mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
24 lines
372 B
C++
24 lines
372 B
C++
#include <atomic>
|
|
#include <iostream>
|
|
|
|
#include "circ_queue.h"
|
|
#include "test.h"
|
|
|
|
namespace {
|
|
|
|
class Unit : public TestSuite {
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void test_(void);
|
|
} unit__;
|
|
|
|
#include "test_circ_queue.moc"
|
|
|
|
void Unit::test_(void) {
|
|
auto* cq = new ipc::circ_queue<4096>;
|
|
QCOMPARE(sizeof(*cq), static_cast<std::size_t>(4096));
|
|
}
|
|
|
|
} // internal-linkage
|