]> git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/profile/Inputs/extern_template.h
New upstream version 1.12.0+dfsg1
[rustc.git] / src / compiler-rt / test / profile / Inputs / extern_template.h
1 template <typename T> struct Test {
2 Test() : M(10) {}
3 void doIt(int N) { // CHECK: 2| [[@LINE]]| void doIt
4 if (N > 10) { // CHECK: 2| [[@LINE]]| if (N > 10) {
5 M += 2; // CHECK: 1| [[@LINE]]| M += 2;
6 } else // CHECK: 1| [[@LINE]]| } else
7 M -= 2; // CHECK: 1| [[@LINE]]| 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