Daniel Dunbar | bd5dfe4 | 2013-01-25 18:08:53 +0000 | [diff] [blame] | 1 | // Check that -iwithprefix falls into the "after" search list. |
| 2 | // |
| 3 | // RUN: rm -rf %t.tmps |
| 4 | // RUN: mkdir -p %t.tmps/first %t.tmps/second |
Daniel Dunbar | b7eaa6b | 2013-01-25 18:50:18 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown \ |
Daniel Dunbar | bd5dfe4 | 2013-01-25 18:08:53 +0000 | [diff] [blame] | 6 | // RUN: -iprefix %t.tmps/ -iwithprefix second \ |
Alp Toker | f80de76 | 2013-11-05 12:45:43 +0000 | [diff] [blame] | 7 | // RUN: -isystem %t.tmps/first -v %s 2> %t.out |
| 8 | // RUN: FileCheck %s < %t.out |
Daniel Dunbar | bd5dfe4 | 2013-01-25 18:08:53 +0000 | [diff] [blame] | 9 | |
| 10 | // CHECK: #include <...> search starts here: |
| 11 | // CHECK: {{.*}}.tmps/first |
Chandler Carruth | fd3cc70 | 2014-12-29 12:09:08 +0000 | [diff] [blame] | 12 | // CHECK: {{/|\\}}lib{{(32|64)?}}{{/|\\}}clang{{/|\\}}{{[.0-9]+}}{{/|\\}}include |
Daniel Dunbar | bd5dfe4 | 2013-01-25 18:08:53 +0000 | [diff] [blame] | 13 | // CHECK: {{.*}}.tmps/second |
| 14 | // CHECK-NOT: {{.*}}.tmps |
| 15 | |
| 16 | |