summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-21 02:35:59 +0000
committerXinliang David Li <davidxl@google.com>2016-01-21 02:35:59 +0000
commitb4fc4cbee60b2d8daf34f9e502caba65b790e8b7 (patch)
treeaf526f4b222423891f09a9f44bd2f35e0fe410dd /llvm/test/tools/llvm-cov/Inputs
parent7ab4dc76c433159e994c7045f459f19b2162c5ec (diff)
downloadbcm5719-llvm-b4fc4cbee60b2d8daf34f9e502caba65b790e8b7.tar.gz
bcm5719-llvm-b4fc4cbee60b2d8daf34f9e502caba65b790e8b7.zip
re-submit test case (withright format-version)
llvm-svn: 258384
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs')
-rwxr-xr-xllvm/test/tools/llvm-cov/Inputs/elf_binary_comdatbin0 -> 2125219 bytes
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdatabin0 -> 1040 bytes
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h19
3 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat b/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat
new file mode 100755
index 00000000000..319322d747f
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat
Binary files differ
diff --git a/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata b/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata
new file mode 100644
index 00000000000..85667041e2c
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata
Binary files differ
diff --git a/llvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h b/llvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h
new file mode 100644
index 00000000000..e1227167cd4
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h
@@ -0,0 +1,19 @@
+template <class T> class FOO {
+public:
+ FOO() : t(0) {}
+
+ T DoIt(T ti);
+
+private:
+ T t;
+};
+
+template <class T> T FOO<T>::DoIt(T ti) { // HEADER: 2| [[@LINE]]|template
+ for (T I = 0; I < ti; I++) { // HEADER: 22| [[@LINE]]| for (T
+ t += I; // HEADER: 20| [[@LINE]]| t += I;
+ if (I > ti / 2) // HEADER: 20| [[@LINE]]| if (I > ti
+ t -= 1; // HEADER: 8| [[@LINE]]| t -= 1;
+ } // HEADER: 10| [[@LINE]]| }
+ // HEADER: 1| [[@LINE]]|
+ return t; // HEADER: 1| [[@LINE]]| return t;
+}
OpenPOWER on IntegriCloud