aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/ordinary-name.c
blob: 680d6dc989c792ca8fae1e934146f0a44951c190 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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