[vala/0.42] 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.42] tests: Add a field starting with a digit test
- Date: Wed, 10 Apr 2019 14:28:36 +0000 (UTC)
commit ecd5be35cbb91ded211d1868756c1860bfe6dac9
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 6a25dc6ed..5434c5c25 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -271,6 +271,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]