[compiler-rt] r238338 - Test case for PR 23499.

Diego Novillo dnovillo at google.com
Wed May 27 10:03:26 PDT 2015


Author: dnovillo
Date: Wed May 27 12:03:26 2015
New Revision: 238338

URL: http://llvm.org/viewvc/llvm-project?rev=238338&view=rev
Log:
Test case for PR 23499.

Modified:
    compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-header.h
    compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-main.cpp

Modified: compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-header.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-header.h?rev=238338&r1=238337&r2=238338&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-header.h (original)
+++ compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-header.h Wed May 27 12:03:26 2015
@@ -1,5 +1,8 @@
+extern int X;
 template <class T> void bar() {
-  if (true) {}
+  if (X) {
+    X *= 4;
+  }
 }
 void a();
 void b();

Modified: compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-main.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-main.cpp?rev=238338&r1=238337&r2=238338&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-main.cpp (original)
+++ compiler-rt/trunk/test/profile/Inputs/instrprof-dynamic-main.cpp Wed May 27 12:03:26 2015
@@ -1,7 +1,9 @@
 #include "instrprof-dynamic-header.h"
+int X = 0;
 void foo(int K) { if (K) {} }
 int main(int argc, char *argv[]) {
   foo(5);
+  X++;
   bar<void>();
   a();
   b();





More information about the llvm-commits mailing list