Files
lammps/unittest/utils/testshared.c
Axel Kohlmeyer fbc0e02cb2 cosmetic
2022-10-14 04:48:54 -04:00

18 lines
328 B
C

/* file for testing loading of shared objects and libraries */
int some_int_val = 12345;
double some_double_val = 6.78e-9;
int some_int_function(int arg)
{
return arg*arg;
}
double some_double_function(double arg1, int arg2)
{
double sum = 0;
for (int i = 0; i < arg2; ++i)
sum += arg1;
return sum;
}