Skip to content

Commit 987fd61

Browse files
committed
[ISSUE] Add #18
1 parent a46999c commit 987fd61

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

issue/18/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include ${PSS_HOME}/issue/Make.vars
2+
3+
gentarget:
4+
$(PSSGEN) test.pss -o test.s -root pss_top::root_a || true
5+
6+
clean:
7+
rm -f test.s result.log

issue/18/test.pss

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*!
2+
@weakgroup issue
3+
@{
4+
@file
5+
@author Luther Lee
6+
@data 2024/05/08
7+
@brief Test issue 18.
8+
9+
10+
---------------------------------------------------------------------------------------------------
11+
12+
### Test Command
13+
@code{.unparsed}
14+
make
15+
@endcode
16+
17+
@cond
18+
*/
19+
component pss_top {
20+
action root_a {
21+
activity {
22+
do printStr with { str == "one ;"; };
23+
do printStr with { str == "two ;"; };;
24+
do printStr with { str == "three ;"; };;;
25+
}
26+
}
27+
28+
action printStr {
29+
rand string str;
30+
exec body ASM = """printStr: {{str}}""";
31+
}
32+
}
33+
34+
/**@}*/

issue/18/test.s.golden

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
printStr: one ;
2+
printStr: two ;
3+
printStr: three ;

0 commit comments

Comments
 (0)