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