| 1 | template <typename T> struct Test { |
|---|---|
| 2 | Test() : M(10) {} |
| 3 | void doIt(int N) { // CHECK: [[@LINE]]| 2| void doIt |
| 4 | if (N > 10) { // CHECK: [[@LINE]]| 2| if (N > 10) { |
| 5 | M += 2; // CHECK: [[@LINE]]| 1| M += 2; |
| 6 | } else // CHECK: [[@LINE]]| 1| } else |
| 7 | M -= 2; // CHECK: [[@LINE]]| 1| M -= 2; |
| 8 | } |
| 9 | T M; |
| 10 | }; |
| 11 | |
| 12 | #ifdef USE |
| 13 | extern template struct Test<int>; |
| 14 | #endif |
| 15 | #ifdef DEF |
| 16 | template struct Test<int>; |
| 17 | #endif |
| 18 |
