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



commit b7a8fac9f8dc134aba7d2f73b95bb24811decc2d
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 36e0d9733..86e2be991 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -639,6 +639,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]