Files
clang-p2996/compiler-rt/test/profile/Inputs/instrprof-comdat-1.cpp
Xinliang David Li 8b1f80779b Resubmit test case with more restriction
The original submittion triggered a BFD linker bug (2.24) on Aarch64 only. Before
the build bot is upgraded to more recent linker, restrict the test to be 
executed only with gold linker.

llvm-svn: 258437
2016-01-21 21:59:19 +00:00

18 lines
197 B
C++

#include "instrprof-comdat.h"
int g;
extern int bar(int);
int main() {
FOO<int> Foo;
int Res = Foo.DoIt(10);
if (Res > 10)
g = bar(10);
else
g = bar(1) + bar(2);
return 0;
}