Debian Codegraph @

debian/tests/link-with-shared

raw
1 #!/bin/sh
2 set -C -e -f -u
3 cd "$AUTOPKGTEST_TMP"
4
5 MAIN=test
6
7 cat > "$MAIN.adb" <<EOF
8 with AUnit.Options; use AUnit.Options;
9 procedure Test is
10 O : constant AUnit_Options := Default_Options;
11 begin
12 null;
13 end Test;
14 EOF
15 cat > p.gpr <<EOF
16 with "aunit";
17 project P is
18 for Source_Dirs use (".");
19 for Main use ("$MAIN.adb");
20 end P;
21 EOF
22 gprbuild -v p.gpr
23 ./$MAIN