[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / compiler-rt / test / profile / Inputs / instrprof-comdat.h
blob61e283cc878edc5377d62326b375622b32157612
1 // Template instantiations are placed into comdat sections. Check that
2 // coverage data from different instantiations are mapped back to the correct
3 // source regions.
5 template <class T> class FOO {
6 public:
7 FOO() : t(0) {}
9 T DoIt(T ti);
11 private:
12 T t;
15 template <class T> T FOO<T>::DoIt(T ti) { // HEADER: [[@LINE]]| 2|template
16 for (T I = 0; I < ti; I++) { // HEADER: [[@LINE]]| 22| for (T
17 t += I; // HEADER: [[@LINE]]| 20| t += I;
18 if (I > ti / 2) // HEADER: [[@LINE]]| 20| if (I > ti
19 t -= 1; // HEADER: [[@LINE]]| 8| t -= 1;
20 } // HEADER: [[@LINE]]| 10| }
21 // HEADER: [[@LINE]]| 1|
22 return t; // HEADER: [[@LINE]]| 1| return t;