| 1 | // RUN: %clang_delta --transformation=remove-namespace --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | |
| 3 | namespace NS1 { |
| 4 | template <class T> struct Base {}; |
| 5 | template <class T> struct Derived: public Base<T> { |
| 6 | typename Derived::template Base<double>* p1; |
| 7 | }; |
| 8 | } |
| 9 | template <class T> struct Base {}; |
| 10 | template <class T> struct Derived: public Base<T> { |
| 11 | typename Derived::template Base<double>* p1; |
| 12 | }; |
| 13 | |
| 14 | // CHECK-NOT: namespace NS1 { |
| 15 | // CHECK: template <class T> struct [[BASE:[a-zA-Z_]+NS1_Base]] {}; |
| 16 | // CHECK: template <class T> struct [[DERIVED:[a-zA-Z_]+NS1_Derived]]: public [[BASE]]<T> { |
| 17 | // CHECK: typename [[DERIVED]]::template [[BASE]]<double>* p1; |
| 18 | // CHECK: }; |
| 19 | // CHECK-NOT: } |
| 20 | // CHECK: template <class T> struct Base {}; |
| 21 | // CHECK: template <class T> struct Derived: public Base<T> { |
| 22 | // CHECK: typename Derived::template [[BASE]]<double>* p1; |
| 23 | // CHECK: }; |
| 24 |