Test case for PR 23499.

llvm-svn: 238338
This commit is contained in:
Diego Novillo 2015-05-27 17:03:26 +00:00
parent 6c12e2db06
commit c88d5b6acd
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
extern int X;
template <class T> void bar() {
if (true) {}
if (X) {
X *= 4;
}
}
void a();
void b();

View File

@ -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();