Files
clang-p2996/compiler-rt/test/profile/Inputs/instrprof-comdat-2.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

13 lines
166 B
C++

#include "instrprof-comdat.h"
int bar(int I) {
FOO<long> Foo;
FOO<int> Foo2;
if (I > 5)
return (int)Foo.DoIt(10);
else
return (int)Foo2.DoIt(I);
}