Rename this test so that it actually runs, and fix it so that it passes.

llvm-svn: 214369
This commit is contained in:
Richard Smith 2014-07-31 00:22:56 +00:00
parent 9177867b24
commit 68daa119ea
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ typedef _Atomic int(A::*mem_ptr_to_atomic_int);
typedef _Atomic(int)&atomic_int_ref;
typedef _Atomic int &atomic_int_ref;
typedef _Atomic atomic_int_ref atomic_int_ref; // ok, qualifiers on references ignored in this case.
typedef _Atomic atomic_int_ref atomic_int_ref; // expected-warning {{'_Atomic' qualifier on reference type 'atomic_int_ref' (aka '_Atomic(int) &') has no effect}}
typedef int &_Atomic atomic_reference_to_int; // expected-error {{'_Atomic' qualifier may not be applied to a reference}}
typedef _Atomic(int &) atomic_reference_to_int; // expected-error {{_Atomic cannot be applied to reference type 'int &'}}