From: Richard Smith Date: Mon, 1 Apr 2013 17:41:23 +0000 (+0000) Subject: Add test for PR12527 (bug has apparently already been fixed). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d11877a226ce09dc0f7e767098f37255e2d3712;p=clang Add test for PR12527 (bug has apparently already been fixed). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178476 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/atomic-ops.c b/test/Sema/atomic-ops.c index a33ff2b19c..b3daa0704d 100644 --- a/test/Sema/atomic-ops.c +++ b/test/Sema/atomic-ops.c @@ -173,3 +173,6 @@ void f(_Atomic(int) *i, _Atomic(int*) *p, _Atomic(float) *d, __c11_atomic_store(&const_atomic, 0, memory_order_release); // expected-error {{first argument to atomic operation must be a pointer to non-const _Atomic type ('const _Atomic(int) *' invalid)}} __c11_atomic_load(&const_atomic, memory_order_acquire); // expected-error {{first argument to atomic operation must be a pointer to non-const _Atomic type ('const _Atomic(int) *' invalid)}} } + +_Atomic(int*) PR12527_a; +void PR12527() { int *b = PR12527_a; }