r178476 - Add test for PR12527 (bug has apparently already been fixed).

Richard Smith richard-llvm at metafoo.co.uk
Mon Apr 1 10:41:24 PDT 2013


Author: rsmith
Date: Mon Apr  1 12:41:23 2013
New Revision: 178476

URL: http://llvm.org/viewvc/llvm-project?rev=178476&view=rev
Log:
Add test for PR12527 (bug has apparently already been fixed).

Modified:
    cfe/trunk/test/Sema/atomic-ops.c

Modified: cfe/trunk/test/Sema/atomic-ops.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/atomic-ops.c?rev=178476&r1=178475&r2=178476&view=diff
==============================================================================
--- cfe/trunk/test/Sema/atomic-ops.c (original)
+++ cfe/trunk/test/Sema/atomic-ops.c Mon Apr  1 12:41:23 2013
@@ -173,3 +173,6 @@ void f(_Atomic(int) *i, _Atomic(int*) *p
   __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; }





More information about the cfe-commits mailing list