diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-16 19:54:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-16 19:54:05 +0000 |
commit | 150fcd5dcb79ad0a9cc6824c5589000e3669c7a4 (patch) | |
tree | 08c07778ed669fbc79f5921f5d2c3fe9581ffc8d /test/CodeCompletion/truncation.c | |
parent | 79bc57c074cb91f574fba19215f95b63dcf6b04b (diff) |
when code completing inside a C-style block comment, don't emit errors about
a missing */ since we truncated the file.
This fixes rdar://7948776
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion/truncation.c')
-rw-r--r-- | test/CodeCompletion/truncation.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeCompletion/truncation.c b/test/CodeCompletion/truncation.c index 134139d78b..1b446b7d92 100644 --- a/test/CodeCompletion/truncation.c +++ b/test/CodeCompletion/truncation.c @@ -2,6 +2,8 @@ struct +/* foo */ + // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s.h:4:8 -o - %s | FileCheck -check-prefix=CC1 %s // CHECK-CC1: X // CHECK-CC1-NEXT: Y @@ -9,3 +11,8 @@ struct // CHECK-CC2: X // CHECK-CC2: Xa // CHECK-CC2: Y + +// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:3 -o - %s | FileCheck -check-prefix=CC3 %s +// CHECK-CC3: X +// CHECK-CC3: Xa +// CHECK-CC3: Y |