Clang Project

clang_source_code/test/Preprocessor/iwithprefix.c
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
5// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
6// RUN:   -iprefix %t.tmps/ -iwithprefix second \
7// RUN:    -isystem %t.tmps/first -v %s 2> %t.out
8// RUN: FileCheck %s < %t.out
9
10// CHECK: #include <...> search starts here:
11// CHECK: {{.*}}.tmps/first
12// CHECK: {{/|\\}}lib{{(32|64)?}}{{/|\\}}clang{{/|\\}}{{[.0-9]+}}{{/|\\}}include
13// CHECK: {{.*}}.tmps/second
14// CHECK-NOT: {{.*}}.tmps
15
16
17