File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
regression/goto-instrument Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- SRC=../../../src
3
+ src=../../../src
4
+ goto_cc=$src /goto-cc/goto-cc
5
+ goto_instrument=$src /goto-instrument/goto-instrument
4
6
5
- GC= $SRC /goto-cc/goto-cc
6
- GI= $SRC /goto-instrument/goto-instrument
7
+ name= ${ @: $# }
8
+ name= ${name % .c}
7
9
8
- OPTS=$1
9
- NAME=${2% .c}
10
+ args=${@: 1: $# -1}
11
+
12
+ $goto_cc -o $name .gb $name .c
13
+ $goto_instrument $args $name .gb
10
14
11
- $GC $NAME .c -o $NAME .gb
12
- $GI $OPTS $NAME .gb
Original file line number Diff line number Diff line change 1
1
CORE
2
2
ret.c
3
- " --escape-analysis --dump-c"
3
+ --escape-analysis --dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
Original file line number Diff line number Diff line change 1
1
CORE
2
2
ret.c
3
- " --escape-analysis --dump-c"
3
+ --escape-analysis --dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
You can’t perform that action at this time.
0 commit comments