1#!/bin/sh 2 3# program 4# <- liba.so 5# 6# Expected: Undefined symbol in liba.so resolves to symbol in program. 7 8 9. ./test_setup 10 11 12# create liba.so 13cat > liba.c << EOI 14extern int b(); 15int a() { return b(); } 16EOI 17 18# build 19compile_lib -o liba.so liba.c 20 21 22# create program 23cat > program.c << EOI 24extern int a(); 25 26int 27b() 28{ 29 return 1; 30} 31 32int 33main() 34{ 35 return a(); 36} 37EOI 38 39# build 40compile_program -o program program.c ./liba.so 41 42# run 43test_run_ok ./program 1 44 45