summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/fun-template-def.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
commit2c4156ea486fd254aef7b5c0aafbee612ce0ca72 (patch)
tree1854829ff3a2b6ffe7cc87be6825439f9d218b00 /test/SemaTemplate/fun-template-def.cpp
parentb016519fe108cb4bf1e2f0981ee6f1892d16c0e7 (diff)
downloadclang-2c4156ea486fd254aef7b5c0aafbee612ce0ca72.tar.gz
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/fun-template-def.cpp')
-rw-r--r--test/SemaTemplate/fun-template-def.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaTemplate/fun-template-def.cpp b/test/SemaTemplate/fun-template-def.cpp
index 2d515b4b15..037747d35c 100644
--- a/test/SemaTemplate/fun-template-def.cpp
+++ b/test/SemaTemplate/fun-template-def.cpp
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// Tests that dependent expressions are always allowed, whereas non-dependent
// are checked as usual.
@@ -9,6 +11,9 @@
namespace std { class type_info {}; }
struct dummy {}; // expected-note 3 {{candidate constructor (the implicit copy constructor)}}
+#if __cplusplus >= 201103L // C++11 or later
+// expected-note@-2 3 {{candidate constructor (the implicit move constructor) not viable}}
+#endif
template<typename T>
int f0(T x) {