summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/friend2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/friend2.cpp')
-rw-r--r--clang/test/SemaCXX/friend2.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/test/SemaCXX/friend2.cpp b/clang/test/SemaCXX/friend2.cpp
index d5087df5d8d..347af0d61b1 100644
--- a/clang/test/SemaCXX/friend2.cpp
+++ b/clang/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}}
-}
-}
OpenPOWER on IntegriCloud