18 lines · c
1template <typename T> struct Test {2 Test() : M(10) {}3 void doIt(int N) { // CHECK: [[@LINE]]| 2| void doIt4 if (N > 10) { // CHECK: [[@LINE]]| 2| if (N > 10) {5 M += 2; // CHECK: [[@LINE]]| 1| M += 2;6 } else // CHECK: [[@LINE]]| 1| } else7 M -= 2; // CHECK: [[@LINE]]| 1| M -= 2;8 }9 T M;10};11 12#ifdef USE13extern template struct Test<int>;14#endif15#ifdef DEF16template struct Test<int>;17#endif18