#! /bin/sh

g++ -g -c main.cpp
g++ -g -c myclass.cpp
g++ -g -o testing.nofunc main.o myclass.o
ls -l
g++ -g -c main.cpp -ffunction-sections
g++ -g -c myclass.cpp  -ffunction-sections
g++ -g -o testing.func main.o myclass.o -Wl,--gc-sections
ls -l