summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-31 00:22:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-31 00:22:56 +0000
commit68daa119eabb2865a9883c692ae7181ce22e97e9 (patch)
tree93e999617e78d0a3fbbfbe1425cde94efb89d582
parent9177867b247fb2b5505cb2f349a04cb1b05aa89b (diff)
downloadbcm5719-llvm-68daa119eabb2865a9883c692ae7181ce22e97e9.tar.gz
bcm5719-llvm-68daa119eabb2865a9883c692ae7181ce22e97e9.zip
Rename this test so that it actually runs, and fix it so that it passes.
llvm-svn: 214369
-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 947bb3c5f40..f522d92f39b 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 &'}}
OpenPOWER on IntegriCloud