Skip to content

Commit c97aa00

Browse files
committed
Merge remote-tracking branch 'remotes/DanielCortez/__pragma' into dev
2 parents 1018c36 + 0340313 commit c97aa00

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
'test_type': 'pcode_check',
3+
'code_pattern': r"""
4+
[0-9a-f]+ halt 00000000
5+
[0-9a-f]+ nop
6+
7+
[0-9a-f]+ proc
8+
[0-9a-f]+ push.c 00000000
9+
[0-9a-f]+ call [0-9a-f]+
10+
[0-9a-f]+ retn
11+
"""
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NakedFunc()
2+
{
3+
__emit nop; // this should be the only instruction generated for this function
4+
__pragma("naked");
5+
}
6+
7+
main()
8+
{
9+
return NakedFunc();
10+
}

0 commit comments

Comments
 (0)