summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/working-directory.c
blob: fbd4ed4f9e10c7e8bba4f5be40df92c7d3a5b779 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang -### -working-directory /no/such/dir/ input 2>&1 | FileCheck %s
// RUN: %clang -### -working-directory %p/Inputs no_such_file.cpp -c 2>&1 | FileCheck %s --check-prefix=CHECK_NO_FILE
// RUN: %clang -### -working-directory %p/Inputs pchfile.cpp -c 2>&1 | FileCheck %s --check-prefix=CHECK_WORKS

// CHECK: unable to set working directory: /no/such/dir/

// CHECK_NO_FILE: no such file or directory: 'no_such_file.cpp'

// CHECK_WORKS: "-coverage-notes-file" "{{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs{{/|\\\\}}pchfile.gcno"
// CHECK_WORKS: "-working-directory" "{{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs"
// CHECK_WORKS: "-fdebug-compilation-dir" "{{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs"
OpenPOWER on IntegriCloud