__opencl_atomic_init(I,5); // expected-error {{address argument to atomic operation must be a pointer to _Atomic type ('__generic int *' invalid)}}
__opencl_atomic_init(ci,5); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
__opencl_atomic_load(0); // expected-error {{too few arguments to function call, expected 3, have 1}}
__opencl_atomic_load(0,0,0,0); // expected-error {{too many arguments to function call, expected 3, have 4}}
__opencl_atomic_store(0,0,0,0); // expected-error {{address argument to atomic builtin must be a pointer}}
__opencl_atomic_store((int*)0,0,0,0); // expected-error {{address argument to atomic operation must be a pointer to _Atomic type ('__generic int *' invalid)}}
__opencl_atomic_store(ci,0,memory_order_relaxed,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
__opencl_atomic_store(i_c,0,memory_order_relaxed,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__constant _Atomic(int) *') invalid)}}
__opencl_atomic_load(ci,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
(int)__opencl_atomic_store(d,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{operand of type 'void' where arithmetic or pointer type is required}}
intexchange_2=__opencl_atomic_exchange(I,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to _Atomic}}
__opencl_atomic_fetch_add(d,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to atomic integer or pointer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invalid)}}
__opencl_atomic_fetch_and(d,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to bitwise atomic operation must be a pointer to atomic integer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invalid)}}
__opencl_atomic_fetch_min(d,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to atomic integer or pointer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invalid)}}
__opencl_atomic_fetch_max(d,1,memory_order_seq_cst,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to atomic integer or pointer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invalid)}}
boolcmpexch_3=__opencl_atomic_compare_exchange_strong(d,I,1,memory_order_seq_cst,memory_order_seq_cst,memory_scope_work_group); // expected-warning {{incompatible pointer types passing '__generic int *' to parameter of type '__generic float *'}}
(void)__opencl_atomic_compare_exchange_strong(i,CI,1,memory_order_seq_cst,memory_order_seq_cst,memory_scope_work_group); // expected-warning {{passing 'const __generic int *' to parameter of type '__generic int *' discards qualifiers}}
boolcmpexchw_3=__opencl_atomic_compare_exchange_weak(d,I,1,memory_order_seq_cst,memory_order_seq_cst,memory_scope_work_group); // expected-warning {{incompatible pointer types passing '__generic int *' to parameter of type '__generic float *'}}
(void)__opencl_atomic_compare_exchange_weak(i,CI,1,memory_order_seq_cst,memory_order_seq_cst,memory_scope_work_group); // expected-warning {{passing 'const __generic int *' to parameter of type '__generic int *' discards qualifiers}}
__opencl_atomic_init(ci,0); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
__opencl_atomic_store(ci,0,memory_order_release,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
__opencl_atomic_load(ci,memory_order_acquire,memory_scope_work_group); // expected-error {{address argument to atomic operation must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __generic _Atomic(int) *') invalid)}}
__opencl_atomic_init(&gn,456);
__opencl_atomic_init(&gn,(void*)0); // expected-warning{{incompatible pointer to integer conversion passing '__generic void *' to parameter of type 'int'}}
(void)__opencl_atomic_load(Ap,memory_order_consume,memory_scope_work_group); // expected-error {{use of undeclared identifier 'memory_order_consume'}}
(void)__opencl_atomic_load(Ap,memory_order_release,memory_scope_work_group); // expected-warning {{memory order argument to atomic operation is invalid}}
(void)__opencl_atomic_load(Ap,memory_order_acq_rel,memory_scope_work_group); // expected-warning {{memory order argument to atomic operation is invalid}}
(void)__opencl_atomic_store(Ap,val,memory_order_acquire,memory_scope_work_group); // expected-warning {{memory order argument to atomic operation is invalid}}
(void)__opencl_atomic_store(Ap,val,memory_order_acq_rel,memory_scope_work_group); // expected-warning {{memory order argument to atomic operation is invalid}}
(void)__opencl_atomic_load(Ap,memory_order_relaxed,memory_scope_work_item); // expected-error{{synchronization scope argument to atomic operation is invalid}}
(void)__opencl_atomic_compare_exchange_strong(Ap,(void*)0,val,memory_order_relaxed,memory_order_relaxed,memory_scope_work_group); // expected-warning {{null passed to a callee that requires a non-null argument}}