// RUN: %clang_cc1 -fsyntax-only -verify %s
classtest1{template<typename>friendint bar(bool=true){}// expected-note {{previous declaration is here}}
template<typename>friendint bar(bool);// expected-error {{friend declaration specifying a default argument must be the only declaration}}
};classtest2{friendint bar(bool=true){}// expected-note {{previous declaration is here}}
friendint bar(bool);// expected-error{{friend declaration specifying a default argument must be the only declaration}}
};