Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 1 | // RUN: mkdir -p %T/test1 %T/test2 %T/test3 |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 2 | |
NAKAMURA Takumi | b293f52 | 2012-03-25 03:42:26 +0000 | [diff] [blame] | 3 | // RUN: env "CPATH=%T/test1%{pathsep}%T/test2" %clang -x c -E -v %s 2>&1 | FileCheck %s -check-prefix=CPATH |
Chad Rosier | 89aa2ce | 2012-10-30 21:42:09 +0000 | [diff] [blame] | 4 | // CPATH: -I{{.*}}/test1 |
| 5 | // CPATH: -I{{.*}}/test2 |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 6 | // CPATH: search starts here |
| 7 | // CPATH: test1 |
Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 8 | // CPATH: test2 |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 9 | |
NAKAMURA Takumi | b293f52 | 2012-03-25 03:42:26 +0000 | [diff] [blame] | 10 | // RUN: env "OBJC_INCLUDE_PATH=%T/test1%{pathsep}%T/test2" OBJCPLUS_INCLUDE_PATH=%T/test1 "CPLUS_INCLUDE_PATH=%T/test1%{pathsep}%t/test2" C_INCLUDE_PATH=%T/test3 %clang -x c -E -v %s 2>&1 | FileCheck %s -check-prefix=C_INCLUDE_PATH |
Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 11 | // C_INCLUDE_PATH: -c-isystem {{"?.*}}/test3{{"?}} -cxx-isystem {{"?.*}}/test1{{"?}} -cxx-isystem {{"?.*}}/test2{{"?}} -objc-isystem {{"?.*}}/test1{{"?}} -objc-isystem {{"?.*}}/test2{{"?}} -objcxx-isystem {{"?.*}}/test1{{"?}} |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 12 | // C_INCLUDE_PATH: search starts here |
| 13 | // C_INCLUDE_PATH-NOT: test1 |
Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 14 | // C_INCLUDE_PATH: test3 |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 15 | // C_INCLUDE_PATH-NOT: test1 |
| 16 | |
Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 17 | // RUN: env OBJC_INCLUDE_PATH=%T/test1 OBJCPLUS_INCLUDE_PATH=%T/test3 CPLUS_INCLUDE_PATH=%T/test3 C_INCLUDE_PATH=%T/test1 %clang -x objective-c++ -E -v %s 2>&1 | FileCheck %s -check-prefix=OBJCPLUS_INCLUDE_PATH |
| 18 | // OBJCPLUS_INCLUDE_PATH: -c-isystem {{"?.*}}/test1{{"?}} -cxx-isystem {{"?.*}}/test3{{"?}} -objc-isystem {{"?.*}}/test1{{"?}} -objcxx-isystem {{"?.*}}/test3{{"?}} |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 19 | // OBJCPLUS_INCLUDE_PATH: search starts here |
| 20 | // OBJCPLUS_INCLUDE_PATH-NOT: test1 |
Nico Weber | 09c5c39 | 2012-03-19 15:00:03 +0000 | [diff] [blame] | 21 | // OBJCPLUS_INCLUDE_PATH: test3 |
Benjamin Kramer | 47adebe | 2011-09-22 21:41:16 +0000 | [diff] [blame] | 22 | // OBJCPLUS_INCLUDE_PATH-NOT: test1 |