blob: 255fbbce2de94e4a5fe9b5ef0402eb5de66528ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
enum Color {
Red,
Orange,
Yellow,
Green,
Blue,
Indigo,
Violet
};
void test(enum Color color) {
switch (color) {
case Red:
break;
case Yellow:
break;
case Green:
break;
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: Blue : 0
// CHECK-NEXT-CC1: Green : 0
// CHECK-NEXT-CC1: Indigo : 0
// CHECK-NEXT-CC1: Orange : 0
// CHECK-NEXT-CC1: Violet : 0
// RUN: true
|