]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/lang/c/enum_types/main.c
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / lang / c / enum_types / main.c
1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #include <stdio.h>
10
11 int main (int argc, char const *argv[])
12 {
13     enum days {
14         Monday = -3,
15         Tuesday,
16         Wednesday,
17         Thursday,
18         Friday,
19         Saturday,
20         Sunday,
21         kNumDays
22     };
23     enum days day;
24     for (day = Monday - 1; day <= kNumDays + 1; day++)
25     {
26         printf("day as int is %i\n", (int)day); // Set break point at this line.
27     }
28     return 0;
29 }