summaryrefslogtreecommitdiffstats
path: root/test cases/common/178 bothlibraries/foo.cpp
blob: a705cbc5ba2fe643724811d7775675ba99ae8920 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <memory>
#include "mylib.h"

extern "C" {
    DO_EXPORT int foo(void);
}

int foo(void) {
    auto bptr = std::make_shared<int>(0);
    return *bptr;
}