1# Tests for merge of empty profile files.
2
3RUN: touch %t_empty.proftext
4RUN: llvm-profdata merge -text -o %t_clang.proftext %t_empty.proftext %p/Inputs/clang_profile.proftext
5RUN: FileCheck --input-file=%t_clang.proftext %s -check-prefix=CLANG_PROF_TEXT
6CLANG_PROF_TEXT: main
7CLANG_PROF_TEXT: 0
8CLANG_PROF_TEXT: 1
9CLANG_PROF_TEXT: 1
10
11RUN: llvm-profdata merge -text -o %t_ir.proftext %t_empty.proftext %p/Inputs/IR_profile.proftext
12RUN: FileCheck --input-file=%t_ir.proftext %s -check-prefix=IR_PROF_TEXT
13IR_PROF_TEXT: :ir
14IR_PROF_TEXT: main
15IR_PROF_TEXT: 0
16IR_PROF_TEXT: 1
17IR_PROF_TEXT: 1
18