summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/ordinary-name.c
blob: 3fcef355c6f7740289a96cfb1f663c52ed20b0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
  // RUN: true
OpenPOWER on IntegriCloud