[clangd] Fix diagnostic errors in the test code, NFC.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: klimek, jkorous-apple, cfe-commits, ioeric

Differential Revision: https://reviews.llvm.org/D44294

llvm-svn: 327293
This commit is contained in:
Haojian Wu 2018-03-12 16:49:24 +00:00
parent acaba3b402
commit 144b0c8036
1 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,9 @@ TEST(GoToInclude, All) {
auto FooH = testPath("foo.h");
auto FooHUri = URIForFile{FooH};
const char *HeaderContents = R"cpp([[]]int a;)cpp";
const char *HeaderContents = R"cpp([[]]#pragma once
int a;
)cpp";
Annotations HeaderAnnotations(HeaderContents);
FS.Files[FooH] = HeaderAnnotations.code();