/gcc/testsuite/gcc.dg/gomp/macro-1.c

https://gitlab.com/sortix/gcc · C · 10 lines · 7 code · 2 blank · 1 comment · 0 complexity · a4271cf7824f2a837486e7951ee23884 MD5 · raw file

  1. // { dg-do compile }
  2. #define N 10
  3. extern void bar(void);
  4. void foo(void)
  5. {
  6. #pragma omp parallel num_threads(N)
  7. bar();
  8. }