Clang Project

clang_source_code/test/CodeCompletion/incomplete-ret-type.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:5:9 %s -o - | FileCheck %s
10// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:6:19 %s -o - | FileCheck %s
11// CHECK: COMPLETION: int{{$}}
12// CHECK: COMPLETION: int_typedef
13// CHECK: COMPLETION: int_value
14