]> Nishi Git Mirror - gwion.git/commitdiff
:art: Change enum name place
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 20:55:23 +0000 (22:55 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 20:55:23 +0000 (22:55 +0200)
ast
tests/error/enum_declared.gw
tests/tree/named_enum.gw [new file with mode: 0644]

diff --git a/ast b/ast
index b631a0ecbc6687ff9b38ad417f0f250f68fdb17f..9d0aeac53100a9d62a368cd7ed418c5f21487e16 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit b631a0ecbc6687ff9b38ad417f0f250f68fdb17f
+Subproject commit 9d0aeac53100a9d62a368cd7ed418c5f21487e16
index 9cb712f9d78120b94db2c127f9a0229577d215f1..45251c5b380f4545fee020cebec957566b76e7af 100644 (file)
@@ -1,6 +1,6 @@
 #! [contains] already been defined
 int i;
-enum
+enum i
 {
   test
-} i;
+}
diff --git a/tests/tree/named_enum.gw b/tests/tree/named_enum.gw
new file mode 100644 (file)
index 0000000..fae589f
--- /dev/null
@@ -0,0 +1,3 @@
+enum MyEnum {
+  a,b,c
+}