1// RUN: rm -fr %t.prof 2// RUN: %clangxx_pgogen=%t.prof/ -o %t.gen -mllvm -do-comdat-renaming=true -O2 %S/../Inputs/comdat_rename_1.cpp %S/../Inputs/comdat_rename_2.cpp 3// RUN: %run %t.gen 4// RUN: llvm-profdata merge -o %t.profdata %t.prof/ 5// RUN: %clangxx_profuse=%t.profdata -O2 -mllvm -do-comdat-renaming=true -emit-llvm -S %S/../Inputs/comdat_rename_1.cpp -o - | FileCheck %S/../Inputs/comdat_rename_1.cpp 6// RUN: %clangxx_profuse=%t.profdata -O2 -mllvm -do-comdat-renaming=true -emit-llvm -S %S/../Inputs/comdat_rename_2.cpp -o - | FileCheck %S/../Inputs/comdat_rename_2.cpp 7