This commit is contained in:
parent
320e023d74
commit
ca91cd693c
18 changed files with 64 additions and 61 deletions
|
@ -1 +1 @@
|
|||
main()
|
||||
f()
|
1
src/scanner/testdata/errors/ExpectedFunctionDefinition2.q
vendored
Normal file
1
src/scanner/testdata/errors/ExpectedFunctionDefinition2.q
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
f() 123
|
|
@ -1 +1 @@
|
|||
main@
|
||||
f@
|
|
@ -1,4 +1,4 @@
|
|||
main() {
|
||||
f() {
|
||||
x := 123 +++ 456
|
||||
syscall(60, x)
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
main() {
|
||||
f() {
|
||||
if 42 {}
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
main() {
|
||||
f() {
|
||||
syscall(+, -, *, /)
|
||||
}
|
|
@ -1 +1 @@
|
|||
main
|
||||
f
|
1
src/scanner/testdata/errors/InvalidFunctionDefinition2.q
vendored
Normal file
1
src/scanner/testdata/errors/InvalidFunctionDefinition2.q
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
f 123
|
|
@ -1 +1 @@
|
|||
main(){
|
||||
f(){
|
|
@ -1,3 +1,3 @@
|
|||
main() {
|
||||
f() {
|
||||
loop {
|
||||
}
|
|
@ -1 +1 @@
|
|||
main()}
|
||||
f()}
|
|
@ -1 +1 @@
|
|||
main(
|
||||
f(
|
1
src/scanner/testdata/errors/MissingGroupEnd2.q
vendored
Normal file
1
src/scanner/testdata/errors/MissingGroupEnd2.q
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
f() -> (
|
|
@ -1 +1 @@
|
|||
main)
|
||||
f)
|
|
@ -1 +1 @@
|
|||
f(,) {}
|
||||
f(a (int)->(int),) {}
|
Loading…
Add table
Add a link
Reference in a new issue