summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-compilation-dir.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-21 02:32:14 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-21 02:32:14 +0000
commitba743b75cb555861ba16ae88f728f880bb7fa018 (patch)
tree4252716c20d652993e66a0c7fc5a0c7724f326ad /clang/test/CodeGen/debug-info-compilation-dir.c
parent8f077161391865d46b05a9a50dffa0eedc3d6deb (diff)
downloadbcm5719-llvm-ba743b75cb555861ba16ae88f728f880bb7fa018.tar.gz
bcm5719-llvm-ba743b75cb555861ba16ae88f728f880bb7fa018.zip
Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is
closer to what GCC does, except that GCC also checks that the inodes for $PWD and '.' match. llvm-svn: 142633
Diffstat (limited to 'clang/test/CodeGen/debug-info-compilation-dir.c')
-rw-r--r--clang/test/CodeGen/debug-info-compilation-dir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-compilation-dir.c b/clang/test/CodeGen/debug-info-compilation-dir.c
new file mode 100644
index 00000000000..4ffa1552cad
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-compilation-dir.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -fdebug-compilation-dir /nonsense -emit-llvm -g %s -o - | \
+// RUN: grep nonsense
+
+// RUN: %clang_cc1 -emit-llvm -g %s -o - | grep %S
OpenPOWER on IntegriCloud