From: Gabor Greif Date: Mon, 30 Aug 2010 21:45:06 +0000 (+0000) Subject: add two more use-cases (explicit instantiation) that should pass now X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d304fe66c032b6c73028cb45758614904e3c1735;p=clang add two more use-cases (explicit instantiation) that should pass now git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112533 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/inject-templated-friend-post.cpp b/test/SemaTemplate/inject-templated-friend-post.cpp index aae7c01681..98ac38edfa 100644 --- a/test/SemaTemplate/inject-templated-friend-post.cpp +++ b/test/SemaTemplate/inject-templated-friend-post.cpp @@ -1,5 +1,7 @@ // RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE" // RUN: %clang %s -S -emit-llvm -o - -DPROTOTYPE | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE" +// RUN: %clang %s -S -emit-llvm -o - -DINSTANTIATE | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE" +// RUN: %clang %s -S -emit-llvm -o - -DPROTOTYPE -DINSTANTIATE | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE" // RUN: %clang -cc1 %s -DREDEFINE -verify // RUN: %clang -cc1 %s -DPROTOTYPE -DREDEFINE -verify // PR8007: friend function not instantiated, reordered version. @@ -55,10 +57,12 @@ std_ostream& operator << (std_ostream& o, const Streamer&) // expected-note } #endif +#ifndef INSTANTIATE template <> void Streamer::operator () (std_ostream& o) const // expected-note{{requested here}} { } +#endif int main(void) {