]> granicus.if.org Git - clang/commitdiff
Rename this test so that it actually runs, and fix it so that it passes.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 31 Jul 2014 00:22:56 +0000 (00:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 31 Jul 2014 00:22:56 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214369 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/atomic-type.cpp [moved from test/SemaCXX/atomic-type.cxx with 91% similarity]

similarity index 91%
rename from test/SemaCXX/atomic-type.cxx
rename to test/SemaCXX/atomic-type.cpp
index 947bb3c5f406dcb44688004ac8a9372879b0faa6..f522d92f39b1248c390ee5c5243d065d438b62b2 100644 (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 &'}}