summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-06-14 10:57:56 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-06-14 10:57:56 +0000
commit1c45048c487fb4300612c80a56599474a5ed6ae4 (patch)
tree083a978fab3134db91036476098f365773acd49d /test/SemaCXX
parent1504a42e9df44aae3733922baf6030e0f3ae1f14 (diff)
Reverted 305379 (Function with unparsed body is a definition)
It broke clang-x86_64-linux-selfhost-modules-2 and some other buildbots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r--test/SemaCXX/friend2.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/SemaCXX/friend2.cpp b/test/SemaCXX/friend2.cpp
index d5087df5d8..347af0d61b 100644
--- a/test/SemaCXX/friend2.cpp
+++ b/test/SemaCXX/friend2.cpp
@@ -170,15 +170,3 @@ struct Test {
template class Test<int>;
}
-
-namespace pr14785 {
-template<typename T>
-struct Somewhat {
- void internal() const { }
- friend void operator+(int const &, Somewhat<T> const &) {} // expected-error{{redefinition of 'operator+'}}
-};
-
-void operator+(int const &, Somewhat<char> const &x) { // expected-note {{previous definition is here}}
- x.internal(); // expected-note{{in instantiation of template class 'pr14785::Somewhat<char>' requested here}}
-}
-}