repo.or.cz
/
tinycc
/
jakubkaszycki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Honour *FLAGS everywhere
[tinycc/jakubkaszycki.git]
/
tests2
/
52_unnamed_enum.c
blob
d0395b2025f173e5aad9aa64eee6edf9f571da36
1
#include <stdio.h>
2
3
enum
fred
{
a
,
b
,
c
};
4
5
int
main
()
6
{
7
printf
(
"a=%d
\n
"
,
a
);
8
printf
(
"b=%d
\n
"
,
b
);
9
printf
(
"c=%d
\n
"
,
c
);
10
11
enum
fred d
;
12
13
typedef
enum
{
e
,
f
,
g
}
h
;
14
typedef
enum
{
i
,
j
,
k
}
m
;
15
16
printf
(
"e=%d
\n
"
,
e
);
17
printf
(
"f=%d
\n
"
,
f
);
18
printf
(
"g=%d
\n
"
,
g
);
19
20
printf
(
"i=%d
\n
"
,
i
);
21
printf
(
"j=%d
\n
"
,
j
);
22
printf
(
"k=%d
\n
"
,
k
);
23
24
return
0
;
25
}
26
27
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/