bolt/deps/llvm-18.1.8/clang/test/CodeCompletion/invalid-initialized-class.cpp

16 lines
427 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
struct Foo { Foo(int); int abc; };
void test1() {
Foo foo;
foo.;
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: COMPLETION: abc
}
void test2() {
Foo foo = garbage();
foo.;
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: COMPLETION: abc
}