| 1 | // RUN: %clang_delta --query-instances=template-arg-to-int %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | |
| 3 | // CHECK: Available transformation instances: 0 |
| 4 | |
| 5 | template <typename T1> struct pair { |
| 6 | typedef T1 first; |
| 7 | }; |
| 8 | |
| 9 | struct S1 { |
| 10 | void foo() {} |
| 11 | }; |
| 12 | struct S2 { |
| 13 | typedef pair<S1>::first type; |
| 14 | pair<S1>::first s1; |
| 15 | type s2; |
| 16 | void bar() { |
| 17 | s1.foo(); |
| 18 | s2.foo(); |
| 19 | } |
| 20 | }; |