[cfe-commits] r141409 - in /cfe/trunk/test/PCH: types.c types.h
Eli Friedman
eli.friedman at gmail.com
Fri Oct 7 13:08:35 PDT 2011
Author: efriedma
Date: Fri Oct 7 15:08:35 2011
New Revision: 141409
URL: http://llvm.org/viewvc/llvm-project?rev=141409&view=rev
Log:
Add a simple PCH test for _Atomic.
Modified:
cfe/trunk/test/PCH/types.c
cfe/trunk/test/PCH/types.h
Modified: cfe/trunk/test/PCH/types.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/types.c?rev=141409&r1=141408&r2=141409&view=diff
==============================================================================
--- cfe/trunk/test/PCH/types.c (original)
+++ cfe/trunk/test/PCH/types.c Fri Oct 7 15:08:35 2011
@@ -14,12 +14,14 @@
ASInt *as_int_ptr1 = &int_value; // expected-error{{changes address space of pointer}}
ASInt *as_int_ptr2 = &int_as_one;
-// FIXME: TYPE_FIXED_WIDTH_INT
-
// TYPE_COMPLEX
_Complex float Cfloat_val;
Cfloat *Cfloat_ptr = &Cfloat_val;
+// TYPE_ATOMIC
+_Atomic(int) AtomicInt_val;
+AtomicInt *AtomicInt_ptr = &AtomicInt_val;
+
// TYPE_POINTER
int_ptr int_value_ptr = &int_value;
Modified: cfe/trunk/test/PCH/types.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/types.h?rev=141409&r1=141408&r2=141409&view=diff
==============================================================================
--- cfe/trunk/test/PCH/types.h (original)
+++ cfe/trunk/test/PCH/types.h Fri Oct 7 15:08:35 2011
@@ -3,11 +3,12 @@
// TYPE_EXT_QUAL
typedef __attribute__((address_space(1))) int ASInt;
-// FIXME: TYPE_FIXED_WIDTH_INT
-
// TYPE_COMPLEX
typedef _Complex float Cfloat;
+// TYPE_ATOMIC
+typedef _Atomic(int) AtomicInt;
+
// TYPE_POINTER
typedef int * int_ptr;
More information about the cfe-commits
mailing list