diff options
author | Bill Wendling <isanbard@gmail.com> | 2014-08-04 18:28:36 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2014-08-04 18:28:36 +0000 |
commit | f6c040eca0508acddc76436645a92a4e104effea (patch) | |
tree | 9432b27f2ad89c3162beab9b57efde4cc5e4cf4b /clang | |
parent | 317fbe2805ec5b985ad9b07448e30b09f597d9f2 (diff) | |
download | llvm-f6c040eca0508acddc76436645a92a4e104effea.zip llvm-f6c040eca0508acddc76436645a92a4e104effea.tar.gz llvm-f6c040eca0508acddc76436645a92a4e104effea.tar.bz2 |
Merging r214369:
------------------------------------------------------------------------
r214369 | rsmith | 2014-07-30 17:22:56 -0700 (Wed, 30 Jul 2014) | 2 lines
Rename this test so that it actually runs, and fix it so that it passes.
------------------------------------------------------------------------
llvm-svn: 214743
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/SemaCXX/atomic-type.cpp (renamed from clang/test/SemaCXX/atomic-type.cxx) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/atomic-type.cxx b/clang/test/SemaCXX/atomic-type.cpp index 947bb3c..f522d92 100644 --- a/clang/test/SemaCXX/atomic-type.cxx +++ b/clang/test/SemaCXX/atomic-type.cpp @@ -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 &'}} |