#!/bin/bash set -e cd $(dirname $0) echo -n "Testing $(basename -s .sh $0) ... " t=$(pwd)/tmp/$(basename -s .sh $0) mkdir -p $t cat < $t/a.ver { global: extern "C++" { foo::bar; }; local: *; }; EOF cat < $t/log fgrep -q _ZN3foo3barE $t/log ! fgrep -q ' bar' $t/log || false echo OK