diff --git a/clang/test/CodeGen/debug-prefix-map.cpp b/clang/test/CodeGen/debug-prefix-map.cpp new file mode 100644 --- /dev/null +++ b/clang/test/CodeGen/debug-prefix-map.cpp @@ -0,0 +1,11 @@ +// RUN: %clang++ -g -fdebug-prefix-map=%p=./UNLIKELY_PATH/empty -S -c %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-REL + +struct alignas(64) an { + struct { + unsigned char x{0}; + } arr[64]; +}; + +struct an *pan = new an; + +// CHECK-REL: !DISubprogram(name: "(unnamed struct at ./UNLIKELY_PATH/empty{{/|\\\\}}{{.*}}",