diff options
Diffstat (limited to 'test/SemaCXX/friend2.cpp')
-rw-r--r-- | test/SemaCXX/friend2.cpp | 12 |
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}} -} -} |