Skip to content

Commit 6e8f82a

Browse files
committed
[ISSUE] Add #23
1 parent f28c556 commit 6e8f82a

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

issue/23/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/23/test.pss

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*!
2+
@weakgroup issue
3+
@{
4+
@file
5+
@author Luther Lee
6+
@data 2024/10/07
7+
@brief Test issue 23.
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 == "normal"; };
23+
if (1) {
24+
do print1;
25+
};
26+
}
27+
}
28+
29+
action printStr {
30+
rand string str;
31+
exec body ASM = """printStr: {{str}}""";
32+
}
33+
34+
action print1 {
35+
exec body ASM = """print1""";
36+
}
37+
38+
}
39+
40+
/**@}*/

issue/23/test.s.golden

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
printStr: normal
2+
print1

0 commit comments

Comments
 (0)