Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IPDSnelting
mjtest-tests
Commits
eb4b5e8f
Commit
eb4b5e8f
authored
Nov 15, 2018
by
Christian Schwarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for .length field access, which is invalid in MJ
parent
72cdcf05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
semantic/array_length.invalid.java
semantic/array_length.invalid.java
+7
-0
No files found.
semantic/array_length.invalid.java
0 → 100644
View file @
eb4b5e8f
class
ArrayLength
{
public
static
void
main
(
String
[]
args
)
{
int
[]
x
=
new
int
[
23
];
/* use of .length is invalid in MiniJava */
int
y
=
x
.
length
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment