Debian Codegraph @

clang/test/DebugInfo/Generic/compilation-dir.c

raw
1 // RUN: mkdir -p %t.dir && cd %t.dir
2 // RUN: cp %s rel.c
3 // RUN: %clang_cc1 -fdebug-compilation-dir /nonsense -emit-llvm -debug-info-kind=limited rel.c -o - | FileCheck -check-prefix=CHECK-NONSENSE %s
4 // RUN: %clang_cc1 -fdebug-compilation-dir=/nonsense -emit-llvm -debug-info-kind=limited rel.c -o - | FileCheck -check-prefix=CHECK-NONSENSE %s
5 // CHECK-NONSENSE: nonsense
6
7 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-DIR %s
8 // CHECK-DIR: Generic
9
10 /// Test path remapping.
11 // RUN: %clang_cc1 -fdebug-compilation-dir=%S -main-file-name %s -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-ABS %s
12 // CHECK-ABS: DIFile(filename: "{{.*}}compilation-dir.c", directory: "{{.*}}Generic")
13
14 // RUN: %clang_cc1 -main-file-name %s -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-NOMAP %s
15 // CHECK-NOMAP: DIFile(filename: "{{.*}}compilation-dir.c", directory: "")
16