mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 23:56:05 +00:00

removed as a duplicate header search path The commit r126167 started passing the First index into RemoveDuplicates, but forgot to update 0 to First in the loop that looks for the duplicate. This resulted in a bug where an -iquoted search path was incorrectly removed if you passed in the same path into -iquote and more than one time into -isystem. rdar://23991350 Differential Revision: https://reviews.llvm.org/D27298 llvm-svn: 288491
13 lines
474 B
C
13 lines
474 B
C
// RUN: %clang_cc1 -v -I%S/Inputs -iquote %S/Inputs/SystemHeaderPrefix -isystem %S/Inputs/SystemHeaderPrefix -isystem %S/Inputs/SystemHeaderPrefix %s 2>&1 | FileCheck %s
|
|
|
|
#include <test.h>
|
|
|
|
// CHECK: ignoring duplicate directory
|
|
// CHECK-SAME: Inputs/SystemHeaderPrefix"{{$}}
|
|
|
|
// CHECK: #include "..."
|
|
// CHECK-NEXT: {{.*}}Inputs/SystemHeaderPrefix{{$}}
|
|
// CHECK-NEXT: #include <...>
|
|
// CHECK-NEXT: {{.*}}Inputs{{$}}
|
|
// CHECK-NEXT: {{.*}}Inputs/SystemHeaderPrefix{{$}}
|