Add a simple PCH test for _Atomic.

llvm-svn: 141409
This commit is contained in:
Eli Friedman 2011-10-07 20:08:35 +00:00
parent eab4bf8fe9
commit 73ddccf7d7
2 changed files with 7 additions and 4 deletions

View File

@ -14,12 +14,14 @@ __attribute__((address_space(1))) int int_as_one;
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;

View File

@ -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;