[cfe-commits] r112338 - /cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp
Gabor Greif
ggreif at gmail.com
Fri Aug 27 17:45:56 PDT 2010
Author: ggreif
Date: Fri Aug 27 19:45:56 2010
New Revision: 112338
URL: http://llvm.org/viewvc/llvm-project?rev=112338&view=rev
Log:
fix test by applying it in top namespace: PR8007 only showed up this way
Modified:
cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp
Modified: cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp?rev=112338&r1=112337&r2=112338&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp (original)
+++ cfe/trunk/test/SemaTemplate/inject-templated-friend.cpp Fri Aug 27 19:45:56 2010
@@ -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 @@
{
}
-} // namespace pr8007
-
int main(void)
{
- using namespace pr8007;
Foo foo;
cout << foo;
}
More information about the cfe-commits
mailing list