diff options
Diffstat (limited to 'test/Driver/debug.c')
-rw-r--r-- | test/Driver/debug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/debug.c b/test/Driver/debug.c new file mode 100644 index 0000000000..2ed8921769 --- /dev/null +++ b/test/Driver/debug.c @@ -0,0 +1,8 @@ +// RUN: %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "'%S'"' +// RUN: PWD=/foo %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "/foo"' + +// This test uses grep instead of FileCheck so that we get %S -> dirname +// substitution. + +// "PWD=/foo gcc" wouldn't necessarily work. You would need to pick a different +// path to the same directory (try a symlink). |