Skip to content

Commit 71022ee

Browse files
committed
Move tests to clang/test/CodeCompletion/overrides.cpp
1 parent 6e5e698 commit 71022ee

File tree

2 files changed

+14
-69
lines changed

2 files changed

+14
-69
lines changed

clang-tools-extra/clangd/test/completion-override-except-spec.test

Lines changed: 0 additions & 69 deletions
This file was deleted.

clang/test/CodeCompletion/overrides.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,17 @@ void func() {
4141
// Runs completion at empty line on line 37.
4242
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-5):1 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
4343
// CHECK-CC4: COMPLETION: Pattern : void vfunc(bool param, int p) override{{$}}
44+
45+
class NoexceptBase {
46+
public:
47+
virtual void method() noexcept;
48+
};
49+
50+
class NoexceptDerived : public NoexceptBase {
51+
public:
52+
met;
53+
};
54+
55+
// Runs completion at met^ on line 52.
56+
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):6 %s -o - | FileCheck -check-prefix=CHECK-CC5 %s
57+
// CHECK-CC5: COMPLETION: Pattern : void method() noexcept override{{$}}

0 commit comments

Comments
 (0)