brintos

brintos / llvm-project-archived public Read only

0
0
Text · 427 B · e228ab5 Raw
16 lines · cpp
1struct Foo { Foo(int); int abc; };2 3void test1() {4  Foo foo;5  foo.;6  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s7  // CHECK-CC1: COMPLETION: abc8}9 10void test2() {11  Foo foo = garbage();12  foo.;13  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s14  // CHECK-CC2: COMPLETION: abc15}16