diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-01-24 20:25:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-01-24 20:25:37 +0000 |
commit | 520a89e9d38bb1c9cc2de3f875eae3ac69f9f08a (patch) | |
tree | 54fe8463a6692d6f8706ee98bffde249b43eed0c /test/CodeCompletion/comments.cpp | |
parent | ead8c8e4f12a52fe33a395d4dce984c89ab04a77 (diff) |
Notes
Diffstat (limited to 'test/CodeCompletion/comments.cpp')
-rw-r--r-- | test/CodeCompletion/comments.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeCompletion/comments.cpp b/test/CodeCompletion/comments.cpp new file mode 100644 index 000000000000..21f1465ebc04 --- /dev/null +++ b/test/CodeCompletion/comments.cpp @@ -0,0 +1,13 @@ +// Note: the run lines follow their respective tests, since line/column +// matter in this test. + +#include "comments.h" + +struct A { + // <- code completion + /* <- code completion */ +}; + +// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:7:6 %s +// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:8:6 %s +// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%S/Inputs/comments.h:3:6 %s |