aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-08-28 00:45:56 +0000
committerGabor Greif <ggreif@gmail.com>2010-08-28 00:45:56 +0000
commit19de06bd7b7772a6a70ccefdc20be75ed1e7b69c (patch)
tree1427bc30b7b3df82833569a1d99a60013274491f
parent2c1b9c3fa3d920aa6ccf843b40c1eb0f1ad04d58 (diff)
fix test by applying it in top namespace: PR8007 only showed up this way
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112338 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaTemplate/inject-templated-friend.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/SemaTemplate/inject-templated-friend.cpp b/test/SemaTemplate/inject-templated-friend.cpp
index 56feae5d26..a987b80018 100644
--- a/test/SemaTemplate/inject-templated-friend.cpp
+++ b/test/SemaTemplate/inject-templated-friend.cpp
@@ -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;
}