blob: 9fb584ef5ef04b1247558cff171695675dbdb904 [file] [log] [blame]
Haojian Wu96573852020-04-03 11:00:16 +02001struct Foo { Foo(int); int abc; };
2
3void test1() {
4 Foo foo;
5 foo.;
6 // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:5:7 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
7 // CHECK-CC1: COMPLETION: abc
8}
9
10void test2() {
11 Foo foo = garbage();
12 foo.;
13 // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:12:7 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
14 // CHECK-CC2: COMPLETION: abc
15}