| 1 |
// XFAIL: target={{.*}}-aix{{.*}} |
| 2 |
|
| 3 |
// RUN: %clang -### -S -fdebug-compilation-dir . %s 2>&1 | FileCheck -check-prefix=CHECK-DEBUG-COMPILATION-DIR %s |
| 4 |
// RUN: %clang -### -S -fdebug-compilation-dir=. %s 2>&1 | FileCheck -check-prefix=CHECK-DEBUG-COMPILATION-DIR %s |
| 5 |
// RUN: %clang -### -integrated-as -fdebug-compilation-dir . -x assembler %s 2>&1 | FileCheck -check-prefix=CHECK-DEBUG-COMPILATION-DIR %s |
| 6 |
// RUN: %clang -### -integrated-as -fdebug-compilation-dir=. -x assembler %s 2>&1 | FileCheck -check-prefix=CHECK-DEBUG-COMPILATION-DIR %s |
| 7 |
// RUN: %clang -### -S -ffile-compilation-dir=. %s 2>&1 | FileCheck -check-prefix=CHECK-DEBUG-COMPILATION-DIR %s |
| 8 |
// RUN: %clang -### -integrated-as -ffile-compilation-dir=. -x assembler %s 2>&1 | FileCheck -check-prefixes=CHECK-DEBUG-COMPILATION-DIR %s |
| 9 |
// CHECK-DEBUG-COMPILATION-DIR: "-fdebug-compilation-dir=." |
| 10 |
// CHECK-DEBUG-COMPILATION-DIR-NOT: "-ffile-compilation-dir=." |
| 11 |
|
| 12 |
// RUN: %clang -### -S %s -working-directory %S 2>&1 | FileCheck -check-prefix=CHECK-CWD %s |
| 13 |
// RUN: cd %S |
| 14 |
// RUN: %clang -### -S %s 2>&1 | FileCheck -check-prefix=CHECK-CWD %s |
| 15 |
// CHECK-CWD: -fdebug-compilation-dir={{.*}}Driver |