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
main(int argc,char const * argv[])11 int main (int argc, char const *argv[])
12 {
13 enum days {
14 Monday = 10,
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);
27 }
28 return 0; // Set break point at this line.
29 }
30