[cfe-commits] r112533 - /cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp

Gabor Greif ggreif at gmail.com
Mon Aug 30 14:45:06 PDT 2010


Author: ggreif
Date: Mon Aug 30 16:45:06 2010
New Revision: 112533

URL: http://llvm.org/viewvc/llvm-project?rev=112533&view=rev
Log:
add two more use-cases (explicit instantiation) that should pass now

Modified:
    cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp

Modified: cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp?rev=112533&r1=112532&r2=112533&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp (original)
+++ cfe/trunk/test/SemaTemplate/inject-templated-friend-post.cpp Mon Aug 30 16:45:06 2010
@@ -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 - -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 -DPROTOTYPE -DREDEFINE -verify
 // PR8007: friend function not instantiated, reordered version.
@@ -55,10 +57,12 @@
 }
 #endif
 
+#ifndef INSTANTIATE
 template <>
 void Streamer<Foo>::operator () (std_ostream& o) const // expected-note{{requested here}}
 {
 }
+#endif
 
 int main(void)
 {





More information about the cfe-commits mailing list