| 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:%(line-4):9 %s -o - | FileCheck %s |
| 10 |
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):19 %s -o - | FileCheck %s |
| 11 |
// CHECK: COMPLETION: int{{$}} |
| 12 |
// CHECK: COMPLETION: int_typedef |
| 13 |
// CHECK: COMPLETION: int_value |