diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeCompletion/Inputs/comments.h | 4 | ||||
-rw-r--r-- | clang/test/CodeCompletion/comments.cpp | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/Inputs/comments.h b/clang/test/CodeCompletion/Inputs/comments.h new file mode 100644 index 00000000000..7b4b5daa0bd --- /dev/null +++ b/clang/test/CodeCompletion/Inputs/comments.h @@ -0,0 +1,4 @@ +// PR32732 +struct B { + // <- code completion +}; diff --git a/clang/test/CodeCompletion/comments.cpp b/clang/test/CodeCompletion/comments.cpp new file mode 100644 index 00000000000..21f1465ebc0 --- /dev/null +++ b/clang/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 |