Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeCompletion / incomplete-ret-type.cpp
blobc9ede5ec42ca8ae42a7c4f47218270cb312c599a
1 struct IncompleteType;
2 int int_value;
3 typedef int int_typedef;
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