]> Nishi Git Mirror - gwion.git/commitdiff
:art: Coverage cpy_ast
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 22:14:43 +0000 (00:14 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 22:14:43 +0000 (00:14 +0200)
tests/tree/cpy_ast.gw [new file with mode: 0644]

diff --git a/tests/tree/cpy_ast.gw b/tests/tree/cpy_ast.gw
new file mode 100644 (file)
index 0000000..eba11ff
--- /dev/null
@@ -0,0 +1,24 @@
+class C {
+  \a{};
+  [ 1 ];
+  int i,j;
+  `i` k;
+  @(0);
+  'a';
+  true $ int;
+  i++;
+  i ? i : !i;
+  ++i;
+  union { int ui; };
+  typeof(i);
+  if(i) i; else i;
+  for(int; i < 1; ++i);
+  int array[2];
+  for(auto a : array);
+  repeat(1);
+#! gotos ...
+  match i { case _:; }
+  enum { zero };
+  typedef int Int;
+}
+C c;