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
Model registry
Operate
Environments
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
Tudor Nazarie
wacc_examples
Commits
2eb1c502
Commit
2eb1c502
authored
5 years ago
by
Mark Wheelhouse
Browse files
Options
Downloads
Patches
Plain Diff
updated string tests to allow for optimised storage in the data segment
parent
573ec210
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
valid/IO/print/multipleStringsAssignment.wacc
+4
-4
4 additions, 4 deletions
valid/IO/print/multipleStringsAssignment.wacc
valid/expressions/stringEqualsExpr.wacc
+1
-1
1 addition, 1 deletion
valid/expressions/stringEqualsExpr.wacc
with
5 additions
and
5 deletions
valid/IO/print/multipleStringsAssignment.wacc
+
4
−
4
View file @
2eb1c502
...
...
@@ -2,18 +2,18 @@
# Output:
# s1 is Hi
# s2 is H
i
# s2 is H
ello
# They are not the same string.
# Now make s1 = s2
# s1 is H
i
# s2 is H
i
# s1 is H
ello
# s2 is H
ello
# They are the same string.
# Program:
begin
string s1 = "Hi" ;
string s2 = "H
i
" ;
string s2 = "H
ello
" ;
print "s1 is " ;
println s1 ;
print "s2 is " ;
...
...
This diff is collapsed.
Click to expand it.
valid/expressions/stringEqualsExpr.wacc
+
1
−
1
View file @
2eb1c502
...
...
@@ -10,7 +10,7 @@
begin
string s1 = "Hello" ;
string s2 = "foo" ;
string s3 = "
foo
" ;
string s3 = "
bar
" ;
bool b = s1 == s1 ;
println b ;
println s1 == s2 ;
...
...
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