Commit cbd8b9d2 authored by Rico Tzschichholz's avatar Rico Tzschichholz

tests: Add invalid "duped constructor/destructor" test to increase coverage

parent 01cd665d
......@@ -403,15 +403,21 @@ TESTS = \
parser/assignment.vala \
parser/attribute-duplicate.test \
parser/attribute-wrong-number.test \
parser/constructor-class-exists.test \
parser/constructor-exists.test \
parser/constructor-no-new.test \
parser/constructor-no-static-class.test \
parser/constructor-static-exists.test \
parser/continue-statement.vala \
parser/creation-no-abstract.test \
parser/creation-no-override.test \
parser/creation-no-virtual.test \
parser/delegate-no-new.test \
parser/destructor-class-exists.test \
parser/destructor-exists.test \
parser/destructor-no-new.test \
parser/destructor-no-static-class.test \
parser/destructor-static-exists.test \
parser/destructor-wrong-name.test \
parser/do-statement.vala \
parser/expect-endbrace.test \
......
Invalid Code
public class Test {
class construct {
}
class construct {
}
}
void main () {
}
Invalid Code
public class Test {
construct {
}
construct {
}
}
void main () {
}
Invalid Code
public class Test {
static construct {
}
static construct {
}
}
void main () {
}
Invalid Code
public class Test {
class ~Test () {
}
class ~Test () {
}
}
void main () {
}
Invalid Code
public class Test {
~Test () {
}
~Test () {
}
}
void main () {
}
Invalid Code
public class Test {
static ~Test () {
}
static ~Test () {
}
}
void main () {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment