brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 95bed45 Raw
26 lines · c
1// RUN: mkdir -p %t/UNIQUEISH_SENTINEL2// RUN: cp %s %t/UNIQUEISH_SENTINEL/abspath.c3 4// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \5// RUN:   -fdebug-compilation-dir=%t/UNIQUEISH_SENTINEL/abspath.c \6// RUN:   %t/UNIQUEISH_SENTINEL/abspath.c -emit-llvm -o - \7// RUN:   | FileCheck %s8 9// RUN: cp %s %t.c10// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \11// RUN:   -fdebug-compilation-dir=%t \12// RUN:   %t.c -emit-llvm -o - | FileCheck %s --check-prefix=INTREE13 14void foo(void) {}15 16// Since %s is an absolute path, directory should be the common17// prefix, but the directory part should be part of the filename.18 19// CHECK: = distinct !DISubprogram({{.*}}file: ![[SPFILE:[0-9]+]]20// CHECK: ![[SPFILE]] = !DIFile(filename: "{{.*}}UNIQUEISH_SENTINEL21// CHECK-SAME:                  abspath.c"22// CHECK-NOT:                   directory: "{{.*}}UNIQUEISH_SENTINEL23 24// INTREE: = distinct !DISubprogram({{.*}}![[SPFILE:[0-9]+]]25// INTREE: DIFile({{.*}}directory: "{{.+}}Generic{{.*}}")26