diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-01 17:41:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-01 17:41:23 +0000 |
commit | 6d11877a226ce09dc0f7e767098f37255e2d3712 (patch) | |
tree | af5480d67ed7687153532eb813dce80602cb0d4d /test/Sema | |
parent | e9ebd852ec1effa393bcc4aad73d9c657a5279c1 (diff) |
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
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/atomic-ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |