#!/bin/sh

set -e

TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
cd $TMPDIR

cat <<EOF > test-include.c
#include <libdwarf/dwarf.h>
#include <libdwarf/libdwarf.h>
int main () { return 0; }
EOF

cc -o test-include test-include.c -ldwarf
[ -x test-include ]
./test-include
