]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeCompletion/incomplete-ret-type.cpp
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeCompletion / incomplete-ret-type.cpp
1 struct IncompleteType;
2 int int_value;
3 typedef int int_typedef;
4
5 void f(in);
6 IncompleteType 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