diff options
Diffstat (limited to 'test/CodeGen/atomic-ops.c')
-rw-r--r-- | test/CodeGen/atomic-ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/atomic-ops.c b/test/CodeGen/atomic-ops.c index e2904cf10e..0ae70b1b37 100644 --- a/test/CodeGen/atomic-ops.c +++ b/test/CodeGen/atomic-ops.c @@ -75,3 +75,9 @@ X fs(_Atomic(X) *c) { // CHECK: atomicrmw xchg i32* return __atomic_exchange(c, (X){2}, memory_order_seq_cst); } + +int lock_free() { + // CHECK: @lock_free + // CHECK: ret i32 1 + return __atomic_is_lock_free(sizeof(_Atomic(int))); +}
\ No newline at end of file |