blob: ca1ca30ae6b5aca5150cbfc851c86ff2eb879147 [file] [log] [blame]
Chandler Carruthd566df62012-12-17 21:40:04 +00001// RUN: cd %S && %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-PWD %s
2// CHECK-PWD: {{"-fdebug-compilation-dir" ".*Driver.*"}}
3
4// RUN: env PWD=/foo %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-FOO %s
5// CHECK-FOO: {{"-fdebug-compilation-dir" ".*foo"}}
6
7// "PWD=/foo gcc" wouldn't necessarily work. You would need to pick a different
8// path to the same directory (try a symlink).
9
10// This depends on host's behavior how $PWD would be set.
11// REQUIRES: shell