r200798 - Simplify testcase from r200797 some more.

Adrian Prantl aprantl at apple.com
Tue Feb 4 13:50:57 PST 2014


Author: adrian
Date: Tue Feb  4 15:50:56 2014
New Revision: 200798

URL: http://llvm.org/viewvc/llvm-project?rev=200798&view=rev
Log:
Simplify testcase from r200797 some more.

Modified:
    cfe/trunk/test/CodeGenCXX/debug-info-template-fwd.cpp

Modified: cfe/trunk/test/CodeGenCXX/debug-info-template-fwd.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-template-fwd.cpp?rev=200798&r1=200797&r2=200798&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-template-fwd.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-template-fwd.cpp Tue Feb  4 15:50:56 2014
@@ -1,22 +1,19 @@
 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -g -emit-llvm -o - | FileCheck %s
 // This test is for a crash when emitting debug info for not-yet-completed types.
 // Test that we don't actually emit a forward decl for the offending class:
-// CHECK:  [ DW_TAG_class_type ] [Derived<const __CFString, Foo>] {{.*}} [def]
+// CHECK:  [ DW_TAG_class_type ] [Derived<Foo>] {{.*}} [def]
 // rdar://problem/15931354
-typedef const struct __CFString * CFStringRef;
 template <class R> class Returner {};
-typedef const __CFString String;
+template <class A> class Derived;
 
-template <class A, class B> class Derived;
-
-template <class A, class B>
+template <class A>
 class Base
 {
-  static Derived<A, B>* create();
+  static Derived<A>* create();
 };
 
-template <class A, class B>
-class Derived : public Base<A, B> {
+template <class A>
+class Derived : public Base<A> {
 public:
   static void foo();
 };
@@ -24,13 +21,13 @@ public:
 class Foo
 {
   Foo();
-  static Returner<Base<String,Foo> > all();
+  static Returner<Base<Foo> > all();
 };
 
 Foo::Foo(){}
 
-Returner<Base<String,Foo> > Foo::all()
+Returner<Base<Foo> > Foo::all()
 {
-  Derived<String,Foo>::foo();
+  Derived<Foo>::foo();
   return Foo::all();
 }





More information about the cfe-commits mailing list