19 lines
301 B
C++
Raw Normal View History

2017-04-14 19:02:05 +02:00
#include <iostream>
2018-04-23 21:13:27 +02:00
int cpp_sq_func(int);
int cu1_sq_func(int);
int cu2_sq_func(int);
2017-04-14 19:02:05 +02:00
2018-04-23 21:13:27 +02:00
bool test_functions()
2017-04-14 19:02:05 +02:00
{
2018-04-23 21:13:27 +02:00
return (cu1_sq_func(42) == cpp_sq_func(42)) &&
(cu2_sq_func(42) == cpp_sq_func(42));
2017-04-14 19:02:05 +02:00
}
int main(int argc, char** argv)
{
2018-04-23 21:13:27 +02:00
int result = test_functions() ? 0 : 1;
return result;
2017-04-14 19:02:05 +02:00
}