]> granicus.if.org Git - clang/commitdiff
fix test by applying it in top namespace: PR8007 only showed up this way
authorGabor Greif <ggreif@gmail.com>
Sat, 28 Aug 2010 00:45:56 +0000 (00:45 +0000)
committerGabor Greif <ggreif@gmail.com>
Sat, 28 Aug 2010 00:45:56 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112338 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/inject-templated-friend.cpp

index 56feae5d263743b9682acecef64856ce04b5d7d8..a987b800180d8a6807a8736005de6bb8fb738e2d 100644 (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;
 }