summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/overload-call-copycon.cpp
diff options
context:
space:
mode:
authorCharles Li <charles_li@playstation.sony.com>2015-11-17 20:25:05 +0000
committerCharles Li <charles_li@playstation.sony.com>2015-11-17 20:25:05 +0000
commite7cbb3ed4fc793fe599d35d780c4d8fda9048aa0 (patch)
treee4f5b4b315885a373d555ce54df36173e16837aa /clang/test/SemaCXX/overload-call-copycon.cpp
parentde642cef2c9e18a7943613809b085789e16fa562 (diff)
downloadbcm5719-llvm-e7cbb3ed4fc793fe599d35d780c4d8fda9048aa0.tar.gz
bcm5719-llvm-e7cbb3ed4fc793fe599d35d780c4d8fda9048aa0.zip
[Lit Test] Updated 34 Lit tests to be C++11 compatible.
Added expected diagnostics new to C++11. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 253371
Diffstat (limited to 'clang/test/SemaCXX/overload-call-copycon.cpp')
-rw-r--r--clang/test/SemaCXX/overload-call-copycon.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/overload-call-copycon.cpp b/clang/test/SemaCXX/overload-call-copycon.cpp
index 6720cb69533..84971024acd 100644
--- a/clang/test/SemaCXX/overload-call-copycon.cpp
+++ b/clang/test/SemaCXX/overload-call-copycon.cpp
@@ -1,6 +1,12 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wnon-pod-varargs
-class X { }; // expected-note {{the implicit copy constructor}} \
- // expected-note{{the implicit default constructor}}
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s -Wnon-pod-varargs
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s -Wnon-pod-varargs
+
+class X { }; // expected-note {{the implicit copy constructor}}
+// expected-note@-1 {{the implicit default constructor}}
+#if __cplusplus >= 201103L // C++11 or later
+// expected-note@-3 {{candidate constructor (the implicit move constructor) not viable}}
+#endif
int& copycon(X x); // expected-note{{passing argument to parameter}}
float& copycon(...);
OpenPOWER on IntegriCloud