1#! /bin/sh
2
3. ../../testenv.sh
4
5analyze ent.vhdl
6elab_simulate ent
7
8if "$GHDL" -v | egrep -q 'mcode|interpret'; then
9  echo "Option -o not supported by mcode/interpretation"
10else
11  "$GHDL" --elab-run -o ent1 ent
12  "$GHDL" --elab-run -o "$PWD/ent2" ent
13fi
14
15rm -f ent1 ent2
16clean
17
18echo "Test successful"
19