llvm-project/clang/test/CodeCompletion/ordinary-name.c

12 lines
283 B
C

struct X { int x; };
typedef struct t TYPEDEF;
void foo() {
int y;
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: y : 0
// CHECK-CC1: foo : 2
// CHECK-NOT-CC1: y : 2
// CHECK-CC1-NEXT: TYPEDEF : 2