|
4 | 4 | // variable declarations and checked regions.
|
5 | 5 | // (https://github.com/correctcomputation/checkedc-clang/issues/387)
|
6 | 6 |
|
7 |
| -// TODO: When https://github.com/correctcomputation/checkedc-clang/issues/327 is |
8 |
| -// fixed, replace the absolute -I option with a .. in the #include directive. |
9 |
| -// |
10 | 7 | // TODO: Windows compatibility?
|
11 | 8 |
|
12 | 9 | // "Lower" case: -base-dir should default to the working directory, so we should
|
13 | 10 | // not allow canwrite_constraints_function_and_variable.h to change, and the
|
14 | 11 | // internal types of q and the return should remain wild.
|
15 | 12 | //
|
16 |
| -// RUN: cd %S && 3c -addcr -extra-arg=-I${PWD%/*} -output-dir=%t.checked/base_subdir -warn-all-root-cause -verify %s |
| 13 | +// RUN: cd %S && 3c -addcr -output-dir=%t.checked/base_subdir -warn-all-root-cause -verify %s |
17 | 14 | // RUN: FileCheck -match-full-lines -check-prefixes=CHECK_LOWER --input-file %t.checked/base_subdir/canwrite_constraints_function_and_variable.c %s
|
18 | 15 | // RUN: test ! -f %t.checked/canwrite_constraints_function_and_variable.checked.h
|
19 | 16 |
|
20 | 17 | // "Higher" case: When -base-dir is set to the parent directory, we can change
|
21 | 18 | // canwrite_constraints_function_and_variable.h, so both q and the return should
|
22 | 19 | // become checked.
|
23 | 20 | //
|
24 |
| -// RUN: cd %S && 3c -addcr -extra-arg=-I${PWD%/*} -base-dir=${PWD%/*} -output-dir=%t.checked2 %s |
| 21 | +// RUN: cd %S && 3c -addcr -base-dir=.. -output-dir=%t.checked2 %s |
25 | 22 | // RUN: FileCheck -match-full-lines -check-prefixes=CHECK_HIGHER --input-file %t.checked2/base_subdir/canwrite_constraints_function_and_variable.c %s
|
26 | 23 | // RUN: FileCheck -match-full-lines -check-prefixes=CHECK_HIGHER --input-file %t.checked2/canwrite_constraints_function_and_variable.h %S/../canwrite_constraints_function_and_variable.h
|
27 | 24 |
|
28 |
| -#include "canwrite_constraints_function_and_variable.h" |
| 25 | +#include "../canwrite_constraints_function_and_variable.h" |
29 | 26 |
|
30 | 27 | int *bar(int *q) {
|
31 | 28 | // CHECK_LOWER: int *bar(int *q : itype(_Ptr<int>)) : itype(_Ptr<int>) {
|
|
0 commit comments