aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/63_local_enumerator_redefinition.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests2/63_local_enumerator_redefinition.c')
-rw-r--r--tests/tests2/63_local_enumerator_redefinition.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/tests2/63_local_enumerator_redefinition.c b/tests/tests2/63_local_enumerator_redefinition.c
new file mode 100644
index 0000000..dd4d8e0
--- /dev/null
+++ b/tests/tests2/63_local_enumerator_redefinition.c
@@ -0,0 +1,14 @@
+enum {
+ FOO,
+ BAR
+};
+
+int main(void)
+{
+ enum {
+ FOO = 2,
+ BAR
+ };
+
+ return BAR - FOO;
+}