fix test by applying it in top namespace: PR8007 only showed up this way

llvm-svn: 112338
This commit is contained in:
Gabor Greif 2010-08-28 00:45:56 +00:00
parent fe22f1d3cc
commit 1d28820888
1 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,5 @@
// RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZN6pr8007lsERNS_11std_ostreamERKNS_8StreamerINS_3FooEEE"
namespace pr8007 {
// RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE"
// PR8007: friend function either not instantiated.
struct std_ostream
{
@ -38,11 +37,8 @@ void Streamer<Foo>::operator () (std_ostream& o) const
{
}
} // namespace pr8007
int main(void)
{
using namespace pr8007;
Foo foo;
cout << foo;
}