diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2016-09-04 11:21:27 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2016-09-04 11:21:27 +0000 |
| commit | 9bd9d98929b5d32ab52d98cccb39f61ab6afe4c1 (patch) | |
| tree | 1fce902bc25a09f99756390decd75b5973df8b9a /clang | |
| parent | 224264ade0674f8ce120432614abfd880323f105 (diff) | |
| download | bcm5719-llvm-9bd9d98929b5d32ab52d98cccb39f61ab6afe4c1.tar.gz bcm5719-llvm-9bd9d98929b5d32ab52d98cccb39f61ab6afe4c1.zip | |
Test case for r280607 to check presence and sanity of the *_LOCK_FREE
macros.
llvm-svn: 280622
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/Headers/stdatomic.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/clang/test/Headers/stdatomic.c b/clang/test/Headers/stdatomic.c new file mode 100644 index 00000000000..76112cfe40e --- /dev/null +++ b/clang/test/Headers/stdatomic.c @@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c11 -E %s | FileCheck %s +#include <stdatomic.h> + +int bool_lock_free = ATOMIC_BOOL_LOCK_FREE; +// CHECK: bool_lock_free = {{ *[012] *;}} + +int char_lock_free = ATOMIC_CHAR_LOCK_FREE; +// CHECK: char_lock_free = {{ *[012] *;}} + +int char16_t_lock_free = ATOMIC_CHAR16_T_LOCK_FREE; +// CHECK: char16_t_lock_free = {{ *[012] *;}} + +int char32_t_lock_free = ATOMIC_CHAR32_T_LOCK_FREE; +// CHECK: char32_t_lock_free = {{ *[012] *;}} + +int wchar_t_lock_free = ATOMIC_WCHAR_T_LOCK_FREE; +// CHECK: wchar_t_lock_free = {{ *[012] *;}} + +int short_lock_free = ATOMIC_SHORT_LOCK_FREE; +// CHECK: short_lock_free = {{ *[012] *;}} + +int int_lock_free = ATOMIC_INT_LOCK_FREE; +// CHECK: int_lock_free = {{ *[012] *;}} + +int long_lock_free = ATOMIC_LONG_LOCK_FREE; +// CHECK: long_lock_free = {{ *[012] *;}} + +int llong_lock_free = ATOMIC_LLONG_LOCK_FREE; +// CHECK: llong_lock_free = {{ *[012] *;}} + +int pointer_lock_free = ATOMIC_POINTER_LOCK_FREE; +// CHECK: pointer_lock_free = {{ *[012] *;}} |

