summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-abspath.c
blob: 3ca170621f9ba7e228424da66c31eff889905f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
// RUN:   %s -emit-llvm -o - | FileCheck %s

// RUN: cp %s %t.c
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
// RUN:   %t.c -emit-llvm -o - | FileCheck %s --check-prefix=INTREE
void foo() {}

// Since %s is an absolute path, directory should be a nonempty
// prefix, but the CodeGen part should be part of the filename.

// CHECK: DIFile(filename: "{{.*}}CodeGen{{.*}}debug-info-abspath.c"
// CHECK-SAME:   directory: "{{.+}}")

// INTREE: DIFile({{.*}}directory: "{{.+}}CodeGen{{.*}}")
OpenPOWER on IntegriCloud