summaryrefslogtreecommitdiff
path: root/clang/test/CodeCompletion/tag.c
blob: 6ad29880666e5baa87452cf122f345cad797c7d8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum X { x };
enum Y { y };
struct Z { };

void X();

void test() {
  enum X { x };
  enum
  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:9:7 %s -o - | FileCheck -check-prefix=CC1 %s
  // CHECK-CC1: X
  // CHECK-CC1: Y