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
32ef6293
Commit
32ef6293
authored
Nov 15, 2018
by
Christian Schwarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case with legitimate calls to a function called main
parent
12d91943
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
semantic/legitimate_call_to_main.java
semantic/legitimate_call_to_main.java
+14
-0
No files found.
semantic/legitimate_call_to_main.java
0 → 100644
View file @
32ef6293
class
ClassWithNonstaticMain
{
/* String is a valid type */
public
void
main
()
{
}
public
void
foo
()
{
main
();
}
}
class
ClassWithStaticVoidMainStringArgs
{
public
static
void
main
(
String
[]
args
)
{
ClassWithNonstaticMain
x
=
new
ClassWithNonstaticMain
();
x
.
main
();
}
}
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