forked from OSchip/llvm-project
add two more use-cases (explicit instantiation) that should pass now
llvm-svn: 112533
This commit is contained in:
parent
60bcc102d7
commit
3fe617cc09
|
@ -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 - | 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 - -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 -DREDEFINE -verify
|
||||||
// RUN: %clang -cc1 %s -DPROTOTYPE -DREDEFINE -verify
|
// RUN: %clang -cc1 %s -DPROTOTYPE -DREDEFINE -verify
|
||||||
// PR8007: friend function not instantiated, reordered version.
|
// PR8007: friend function not instantiated, reordered version.
|
||||||
|
@ -55,10 +57,12 @@ std_ostream& operator << (std_ostream& o, const Streamer<Foo>&) // expected-note
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef INSTANTIATE
|
||||||
template <>
|
template <>
|
||||||
void Streamer<Foo>::operator () (std_ostream& o) const // expected-note{{requested here}}
|
void Streamer<Foo>::operator () (std_ostream& o) const // expected-note{{requested here}}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue