Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WACC Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TF Lab Deployer 2425 Spring
WACC Examples
Commits
a5f03936
Verified
Commit
a5f03936
authored
1 month ago
by
Jamie Willis
Browse files
Options
Downloads
Patches
Plain Diff
added clashNames example
parent
55b6a1e8
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
valid/function/simple_functions/clashNames.wacc
+21
-0
21 additions, 0 deletions
valid/function/simple_functions/clashNames.wacc
with
21 additions
and
0 deletions
valid/function/simple_functions/clashNames.wacc
0 → 100644
+
21
−
0
View file @
a5f03936
# we should be able to use any function names, even if they clash with libc
# Output:
# Exit:
# 101
# Program:
begin
int malloc() is return 42 end
int scanf() is return 37 end
int printf() is return 20 end
int puts() is return 2 end
int u = call malloc();
int x = call scanf();
int y = call printf();
int z = call puts();
exit (u + x + y + z)
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment