brintos

brintos / llvm-project-archived public Read only

0
0
Text · 713 B · c3e7c0a Raw
17 lines · cpp
1// REQUIRES: symlinks2// RUN: rm -rf %t && mkdir -p %t/real/myproj && mkdir -p %t/links3// RUN: touch %t/real/foo.h && ln -s %t/real/foo.h %t/links/foo.h4// RUN: touch %t/real/foobar.h && ln -s %t/real/foobar.h %t/links/foobar.h5// RUN: touch %t/real/myproj/test.h && ln -s %t/real/myproj %t/links/myproj6 7// Suggest symlinked header files.8#include "foo.h"9// RUN: %clang -fsyntax-only -I%t/links -Xclang -code-completion-at=%s:%(line-1):13 %s | FileCheck -check-prefix=CHECK-1 %s10// CHECK-1: foo.h"11// CHECK-1: foobar.h"12 13// Suggest symlinked folder.14#include "mypr"15// RUN: %clang -fsyntax-only -I%t/links -Xclang -code-completion-at=%s:%(line-1):13 %s | FileCheck -check-prefix=CHECK-2 %s16// CHECK-2: myproj/17