Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / profile / Inputs / instrprof-order-file.c
blob9251a8e25524240e36c657629f176a648f7a5c68
1 void __llvm_profile_initialize_file(void);
2 int __llvm_orderfile_dump(void);
4 __attribute__((noinline)) int f(int a);
6 __attribute__((noinline)) int g(int a);
8 int main(int argc, const char *argv[]) {
9 int a = f(argc);
10 int t = 0;
11 for (int i = 0; i < argc; i++)
12 t += g(a);
13 f(t);
14 __llvm_profile_initialize_file();
15 __llvm_orderfile_dump();
16 return 0;