cmake/Tests/COnly/conly.c

21 lines
322 B
C
Raw Normal View History

2020-02-01 23:06:01 +01:00
#include <stdio.h>
2020-02-01 23:06:01 +01:00
#include "foo.h"
#include "libc1.h"
#include "libc2.h"
2016-07-09 11:21:54 +02:00
int main()
{
int class = 0;
2016-07-09 11:21:54 +02:00
if (LibC1Func() != 2.0) {
printf("Problem with libc1\n");
return 1;
2016-07-09 11:21:54 +02:00
}
if (LibC2Func() != 1.0) {
printf("Problem with libc2\n");
return 1;
2016-07-09 11:21:54 +02:00
}
printf("Foo: %s %d\n", foo, class);
return 0;
}