[vala/staging: 1/7] tests: Add "invalid address-of" test to increase coverage



commit 8af4e4911f4e1b445b0630576ab6255479ae8e3b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Nov 16 12:51:08 2019 +0100

    tests: Add "invalid address-of" test to increase coverage

 tests/Makefile.am                      | 1 +
 tests/semantic/address-of-invalid.test | 8 ++++++++
 2 files changed, 9 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 24331e437..01161db0a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -651,6 +651,7 @@ TESTS = \
        ordering/delegate-interface.vala \
        ordering/delegate-struct.vala \
        ordering/struct-delegate.vala \
+       semantic/address-of-invalid.test \
        semantic/array-stacked.test \
        semantic/array-incompatible-initializer.test \
        semantic/array-incompatible-initializer2.test \
diff --git a/tests/semantic/address-of-invalid.test b/tests/semantic/address-of-invalid.test
new file mode 100644
index 000000000..c8a6ee502
--- /dev/null
+++ b/tests/semantic/address-of-invalid.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+void foo () {
+}
+
+void main () {
+       void* f = &foo;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]