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 | 561aabd9435ca970b5b13aee8319a687ff5e0a77 (patch) | |
tree | 1eab114441226d76e452de3454c218aacd10df21 /clang/test/CodeCompletion/truncation.c | |
parent | c6da261fb4fddc43bbea9439834582ae3d7af48b (diff) | |
download | bcm5719-llvm-561aabd9435ca970b5b13aee8319a687ff5e0a77.tar.gz bcm5719-llvm-561aabd9435ca970b5b13aee8319a687ff5e0a77.zip |
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
llvm-svn: 103913
Diffstat (limited to 'clang/test/CodeCompletion/truncation.c')
-rw-r--r-- | clang/test/CodeCompletion/truncation.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/truncation.c b/clang/test/CodeCompletion/truncation.c index 134139d78bd..1b446b7d92c 100644 --- a/clang/test/CodeCompletion/truncation.c +++ b/clang/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 |