Skip to content

Commit f7e0585

Browse files
committed
added test for __builtin_strlen
1 parent b804706 commit f7e0585

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Test/Expect/stest299.pasm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pub main
2+
coginit(0, @entry, 0)
3+
dat
4+
org 0
5+
entry
6+
7+
_main
8+
mov outa, #261
9+
_main_ret
10+
ret
11+
12+
COG_BSS_START
13+
fit 496
14+
org COG_BSS_START
15+
fit 496

Test/stest299.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
void main() {
2+
_OUTA = __builtin_strlen("hello") | 0x100;
3+
}

0 commit comments

Comments
 (0)