From 3e56584223a67a6c2f41a43cf38e0960e9992238 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 31 Mar 2014 22:58:17 +0800 Subject: Allow local redefinition of enumerator --- tests/tests2/63_local_enumerator_redefinition.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/tests2/63_local_enumerator_redefinition.c (limited to 'tests/tests2/63_local_enumerator_redefinition.c') 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; +} -- cgit v1.3.1