1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "sharedlib/shared.hpp" #include "staticlib/static.h" int main(void) { for(int i = 0; i < 1000; add_numbers(i, 1)) { SharedClass cl1; if(cl1.getNumber() != 42) { return 1; } cl1.doStuff(); if(cl1.getNumber() != 43) { return 2; } } return 0; }