[vala/0.40] tests: Add a field starting with a digit test
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add a field starting with a digit test
- Date: Tue, 9 Apr 2019 13:50:06 +0000 (UTC)
commit 6ee62b0b23713ede28974ba56821ce34614efee2
Author: Corentin Noël <corentin elementary io>
Date: Thu Mar 21 22:19:28 2019 +0100
tests: Add a field starting with a digit test
tests/Makefile.am | 1 +
tests/objects/field-leading-digit.test | 8 ++++++++
2 files changed, 9 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7364d67d4..be49c5c70 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -261,6 +261,7 @@ TESTS = \
objects/dynamic.vala \
objects/generics.vala \
objects/initially-unowned.vala \
+ objects/field-leading-digit.test \
objects/fields.vala \
objects/gsource.vala \
objects/interfaces.vala \
diff --git a/tests/objects/field-leading-digit.test b/tests/objects/field-leading-digit.test
new file mode 100644
index 000000000..fc27b192a
--- /dev/null
+++ b/tests/objects/field-leading-digit.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+class Foo : Object {
+ int 0bar = 0;
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]