introducing-cmake/exercises/test/test.cc

20 lines
241 B
C++
Raw Normal View History

2019-07-27 18:28:47 +02:00
#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
}