introducing-cmake/exercises/test/test.cc

20 lines
241 B
C++

#include <cmake-exercise/a.hh>
#include <vector>
int
main()
{
// not a real test, heh.
#ifdef HAVE_OPENMP
# pragma omp parallel for
for (int n = 0; n < 20; ++n)
{
A a;
}
#else
std::vector<A> a (20);
#endif
}