1 // Disable full debug info and verify that we get warnings during merging
3 // RUN: %clang_pgogen -o %t -gline-tables-only -mllvm --debug-info-correlate -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
4 // RUN: env LLVM_PROFILE_FILE=%t.proflite %run %t
5 // RUN: llvm-profdata merge -o %t.profdata --debug-info=%t %t.proflite --max-debug-info-correlation-warnings=2 2>&1 >/dev/null | FileCheck %s --check-prefixes=CHECK,LIMIT --implicit-check-not=warning
6 // RUN: llvm-profdata merge -o %t.profdata --debug-info=%t %t.proflite --max-debug-info-correlation-warnings=0 2>&1 >/dev/null | FileCheck %s --check-prefixes=CHECK,NOLIMIT --implicit-check-not=warning
8 // CHECK: warning: Could not find address of function
9 // CHECK: warning: Could not find address of function
10 // NOLIMIT: warning: Could not find address of function
11 // NOLIMIT: warning: Could not find address of function
12 // NOLIMIT: warning: Could not find address of function
13 // LIMIT: warning: Suppressed 3 additional warnings