14 lines · cpp
1struct IncompleteType;2int int_value;3typedef int int_typedef;4 5void f(in);6IncompleteType g(in);7// Completing should produce results even if types are incomplete.8// Note that clang is expected to return an error code since 'in' does not resolve.9// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):9 %s -o - | FileCheck %s10// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):19 %s -o - | FileCheck %s11// CHECK: COMPLETION: int{{$}}12// CHECK: COMPLETION: int_typedef13// CHECK: COMPLETION: int_value14