diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/macro-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/macro-2.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/macro-2.c b/gcc/testsuite/gcc.dg/gomp/macro-2.c new file mode 100644 index 00000000000..75d6490cd7c --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/macro-2.c @@ -0,0 +1,14 @@ +// { dg-do compile } + +#define p parallel +#define s(x) shared(x##1, x##2) +#define d(x) default(x) + +void bar(int, int, int, int); +void foo(void) +{ + int a1, a2, b1, b2; + + #pragma omp p s(a) s(b) d(none) + bar(a1, a2, b1, b2); +} |