diff options
Diffstat (limited to 'test/profile/Inputs/instrprof-comdat-1.cpp')
-rw-r--r-- | test/profile/Inputs/instrprof-comdat-1.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/profile/Inputs/instrprof-comdat-1.cpp b/test/profile/Inputs/instrprof-comdat-1.cpp new file mode 100644 index 0000000000000..bd574ec3fb89e --- /dev/null +++ b/test/profile/Inputs/instrprof-comdat-1.cpp @@ -0,0 +1,17 @@ +#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; +} + |