File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ ckb-libc-debug:
80
80
-march=rv64imc \
81
81
-nostdlib \
82
82
-Wall -Werror -Wextra -Wno-unused-parameter -Wno-nonnull -fno-builtin-printf -fno-builtin-memcmp -O3 -g -fdata-sections -ffunction-sections \
83
+ -Wno-implicit-function-declaration -Wno-visibility \
83
84
-I libc \
84
85
-I molecule \
85
86
-I . \
@@ -95,6 +96,7 @@ ckb-libc-release:
95
96
-march=rv64imc \
96
97
-nostdlib \
97
98
-Wall -Werror -Wextra -Wno-unused-parameter -Wno-nonnull -fno-builtin-printf -fno-builtin-memcmp -O3 -fdata-sections -ffunction-sections \
99
+ -Wno-implicit-function-declaration -Wno-visibility \
98
100
-I libc \
99
101
-I molecule \
100
102
-I . \
@@ -129,6 +131,7 @@ test/example:
129
131
${CELL} -d -t riscv tests/examples/always-true.cell && ckb-debugger --bin always-true
130
132
${CELL} -d -t riscv tests/examples/helloworld.cell && ckb-debugger --bin helloworld | grep " hello world! 1"
131
133
${CELL} -t riscv tests/examples/table.cell && ckb-debugger --bin table
134
+ ${CELL} -d -t riscv tests/examples/string.cell && ckb-debugger --bin string | grep " eq"
132
135
${CELL} -t riscv tests/examples/cell-data.cell && ckb-debugger --bin cell-data
133
136
${CELL} -t riscv tests/examples/inputs.cell && ckb-debugger --bin inputs
134
137
${CELL} -t riscv tests/examples/outputs.cell && ckb-debugger --bin outputs
Original file line number Diff line number Diff line change
1
+ package main
2
+ import "debug"
3
+ func main() {
4
+ xx := "xxo"
5
+ if xx == "xxo" {
6
+ debug.Printf("eq")
7
+ }
8
+ debug.Printf("not")
9
+ return 0
10
+ }
You can’t perform that action at this time.
0 commit comments