opnsense-src/test/CodeCompletion/enum-switch-case.c

29 lines
486 B
C
Raw Normal View History

2009-10-14 14:03:49 -04:00
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;
2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CC1 %s
2010-01-15 10:39:40 -05:00
// CHECK-CC1: Blue
// CHECK-CC1-NEXT: Green
// CHECK-CC1-NEXT: Indigo
// CHECK-CC1-NEXT: Orange
// CHECK-CC1-NEXT: Violet
2009-10-14 14:03:49 -04:00