mirror of
https://github.com/yugr/Implib.so
synced 2026-06-08 18:33:41 +00:00
28 lines
357 B
C++
28 lines
357 B
C++
/*
|
|
* Copyright 2019 Yury Gribov
|
|
*
|
|
* The MIT License (MIT)
|
|
*
|
|
* Use of this source code is governed by MIT license that can be
|
|
* found in the LICENSE.txt file.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "interposed.h"
|
|
|
|
A *a, *b;
|
|
int flag = 1;
|
|
|
|
int main() {
|
|
if (flag) {
|
|
a = new A;
|
|
b = new B;
|
|
}
|
|
|
|
a->foo(100, 200);
|
|
b->foo(100, 200);
|
|
|
|
return 0;
|
|
}
|