Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
cython-plus
typon
Commits
e19cf66a
Commit
e19cf66a
authored
Jul 08, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test programs
parent
d39b3d5a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
6 deletions
+8
-6
rt/test/fibo.cpp
rt/test/fibo.cpp
+3
-1
rt/test/fibo_call_overhead.cpp
rt/test/fibo_call_overhead.cpp
+1
-1
rt/test/loop.cpp
rt/test/loop.cpp
+1
-1
rt/test/main.cpp
rt/test/main.cpp
+1
-1
rt/test/test_discard.cpp
rt/test/test_discard.cpp
+1
-1
rt/test/test_inline.cpp
rt/test/test_inline.cpp
+1
-1
No files found.
rt/test/fibo.cpp
View file @
e19cf66a
#include <typon/
core/task
.hpp>
#include <typon/
typon
.hpp>
#include <cstdio>
...
...
@@ -13,6 +13,8 @@ Task<int> fibo(int n) {
co_return
a
+
b
;
}
int
main
()
{
int
result
=
fibo
(
40
).
call
();
printf
(
"%d
\n
"
,
result
);
...
...
rt/test/fibo_call_overhead.cpp
View file @
e19cf66a
#include <typon/
core/
task.hpp>
#include <typon/task.hpp>
#include <cstdio>
...
...
rt/test/loop.cpp
View file @
e19cf66a
#include <typon/
core/
task.hpp>
#include <typon/task.hpp>
#include <cstdio>
...
...
rt/test/main.cpp
View file @
e19cf66a
#include <typon/
core/
task.hpp>
#include <typon/task.hpp>
#include <cstdio>
...
...
rt/test/test_discard.cpp
View file @
e19cf66a
#include <typon/
core/
task.hpp>
#include <typon/task.hpp>
#include <cstdio>
...
...
rt/test/test_inline.cpp
View file @
e19cf66a
#include <typon/
core/
task.hpp>
#include <typon/task.hpp>
#include <cstdio>
...
...
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