blob: ea6b9b55b90f9cab64465885b06b370d6c21eb4e [file]
// Copyright 2026 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/memory_barriers/memory_barriers.h>
#include <zxtest/zxtest.h>
namespace {
TEST(MemoryBarriersTest, AllBarriers) {
DataMemoryBarrier();
ReadDataMemoryBarrier();
WriteDataMemoryBarrier();
DataSynchronizationBarrier();
ReadDataSynchronizationBarrier();
WriteDataSynchronizationBarrier();
BarrierAfterFlush();
BarrierBeforeInvalidate();
BarrierBeforeRelease();
}
} // namespace