Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
20449d80
Commit
20449d80
authored
Apr 27, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C++ const fix in test
parent
5edcceaf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/run/arithmetic_analyse_types_helper.h
tests/run/arithmetic_analyse_types_helper.h
+6
-6
No files found.
tests/run/arithmetic_analyse_types_helper.h
View file @
20449d80
/* A set of mutually incompatable return types. */
struct
short_return
{
c
onst
c
har
*
msg
;
};
struct
int_return
{
c
onst
c
har
*
msg
;
};
struct
longlong_return
{
c
onst
c
har
*
msg
;
};
struct
short_return
{
char
*
msg
;
};
struct
int_return
{
char
*
msg
;
};
struct
longlong_return
{
char
*
msg
;
};
/* A set of overloaded methods. */
short_return
f
(
short
arg
)
{
short_return
val
;
val
.
msg
=
"short called"
;
val
.
msg
=
(
char
*
)
"short called"
;
return
val
;
}
int_return
f
(
int
arg
)
{
int_return
val
;
val
.
msg
=
"int called"
;
val
.
msg
=
(
char
*
)
"int called"
;
return
val
;
}
longlong_return
f
(
long
long
arg
)
{
longlong_return
val
;
val
.
msg
=
"long long called"
;
val
.
msg
=
(
char
*
)
"long long called"
;
return
val
;
}
...
...
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