gcc/testsuite/gcc.dg/gomp/notify-new-function-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fopenmp -fdump-tree-omplower" } */ |
| 3 | |
| 4 | void __attribute__((noinline)) |
| 5 | baz (int *p) |
| 6 | { |
| 7 | } |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | int p[2]; |
| 13 | p[0] = 1; |
| 14 | p[1] = 3; |
| 15 | #pragma omp task firstprivate (p) |
| 16 | baz (p); |
| 17 | } |
| 18 | |
| 19 | /* Check for new function notification in omplower dump. */ |
| 20 | /* { dg-final { scan-tree-dump-times "Added new high gimple function foo\\._omp_cpyfn\\.1 to callgraph" 1 "omplower" } } */ |