Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Headers / stdatomic.c
blob3643fd4245b31aeac995a4ce817edc782bc7d1f3
1 // RUN: %clang_cc1 -std=c11 -E %s | FileCheck %s
2 // RUN: %clang_cc1 -std=c11 -fms-compatibility -E %s | FileCheck %s
3 #include <stdatomic.h>
5 int bool_lock_free = ATOMIC_BOOL_LOCK_FREE;
6 // CHECK: bool_lock_free = {{ *[012] *;}}
8 int char_lock_free = ATOMIC_CHAR_LOCK_FREE;
9 // CHECK: char_lock_free = {{ *[012] *;}}
11 int char16_t_lock_free = ATOMIC_CHAR16_T_LOCK_FREE;
12 // CHECK: char16_t_lock_free = {{ *[012] *;}}
14 int char32_t_lock_free = ATOMIC_CHAR32_T_LOCK_FREE;
15 // CHECK: char32_t_lock_free = {{ *[012] *;}}
17 int wchar_t_lock_free = ATOMIC_WCHAR_T_LOCK_FREE;
18 // CHECK: wchar_t_lock_free = {{ *[012] *;}}
20 int short_lock_free = ATOMIC_SHORT_LOCK_FREE;
21 // CHECK: short_lock_free = {{ *[012] *;}}
23 int int_lock_free = ATOMIC_INT_LOCK_FREE;
24 // CHECK: int_lock_free = {{ *[012] *;}}
26 int long_lock_free = ATOMIC_LONG_LOCK_FREE;
27 // CHECK: long_lock_free = {{ *[012] *;}}
29 int llong_lock_free = ATOMIC_LLONG_LOCK_FREE;
30 // CHECK: llong_lock_free = {{ *[012] *;}}
32 int pointer_lock_free = ATOMIC_POINTER_LOCK_FREE;
33 // CHECK: pointer_lock_free = {{ *[012] *;}}