uatomic/x86: Remove redundant memory barriers
[urcu.git] / tests / unit / test_arch.c
CommitLineData
ce29b371
MJ
1// SPDX-FileCopyrightText: 2021 Michael Jeanson <mjeanson@efficios.com>
2//
3// SPDX-License-Identifier: GPL-2.0-or-later
bbc9abdc
MJ
4
5#include <stdio.h>
6#include <urcu/arch.h>
7
8#include "tap.h"
9
10#define NR_TESTS 1
11
12
13/*
14 * This is only to make sure the static inline caa_get_cycles() in the public
15 * headers builds properly.
16 */
17static
18void test_caa_get_cycles(void) {
19 caa_cycles_t cycles = 0;
20
21
22 cycles = caa_get_cycles();
23
24 ok(cycles != 0, "caa_get_cycles works");
25}
26
27int main(void)
28{
29 plan_tests(NR_TESTS);
30
31 test_caa_get_cycles();
32
33 return exit_status();
34}
This page took 0.026701 seconds and 4 git commands to generate.