Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPDSnelting
mjtest-tests
Commits
957e4d74
Verified
Commit
957e4d74
authored
Nov 15, 2018
by
Maximilian Stemmer-Grabow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove undefined behavior in array access test case
parent
b8ef4af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
semantic/array_access_on_returned_value.java
semantic/array_access_on_returned_value.java
+4
-2
No files found.
semantic/array_access_on_returned_value.java
View file @
957e4d74
...
...
@@ -2,11 +2,13 @@ class Main {
public
static
void
main
(
String
[]
arguments
)
{
Main
main
=
new
Main
();
main
.
getArray
()[
0
]
=
1
;
new
Main
().
getArray
()[
0
]
=
2
;
}
public
int
[]
getArray
()
{
return
new
int
[
0
];
int
[]
result
=
new
int
[
1
];
result
[
0
]
=
42
;
return
result
;
}
}
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