diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-02-18 17:12:19 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-02-18 17:19:27 +0100 |
commit | 4f5221e7fe44ee5fb1a1df422d6e317ccd87d6ac (patch) | |
tree | 23051cc62dcc8726507044c684843ced2e139996 /tests | |
parent | a29c3ff9d2d695bc525c15e33bcdeebf6ff4ccbf (diff) | |
download | vala-4f5221e7fe44ee5fb1a1df422d6e317ccd87d6ac.tar.gz |
vala: Handle PointerType and VoidType in Constant.check_const_type()
This caused criticals like:
vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/semantic/constant-pointer.test | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f683d18c7..071935bd1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -733,6 +733,7 @@ TESTS = \ semantic/class-too-few-type-arguments.test \ semantic/class-too-many-type-arguments.test \ semantic/constant-extern.test \ + semantic/constant-pointer.test \ semantic/constant-value.test \ semantic/constant-value-missing.test \ semantic/constant-value-type.test \ diff --git a/tests/semantic/constant-pointer.test b/tests/semantic/constant-pointer.test new file mode 100644 index 000000000..23235c23e --- /dev/null +++ b/tests/semantic/constant-pointer.test @@ -0,0 +1,6 @@ +Invalid Code + +const int* FOO = 0; + +void main () { +} |