xref: /llvm-project/clang/test/CodeGenCXX/profile-remap-error.cpp (revision 61d418f97154805100dc19ff2ef1338e9de2f27d)
1 // REQUIRES: x86-registered-target
2 
3 // RUN: not %clang_cc1 -triple x86_64-linux-gnu -fprofile-sample-use=%S/Inputs/profile-remap.samples -fprofile-remapping-file=%S/Inputs/profile-remap-error.map -O2 %s -emit-llvm -o - 2>&1 | FileCheck %s
4 
5 // CHECK:      error: {{.*}}/profile-remap-error.map:1: Could not demangle 'unmangled' as a <name>; invalid mangling?
6 // CHECK-NEXT: error: {{.*}}/profile-remap-error.map: Could not create remapper: Malformed sample profile data
7 // CHECK-NEXT: error: {{.*}}/profile-remap.samples: Could not open profile: Malformed sample profile data
8