aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/notify-new-function.c
blob: 4770a6bda8c2e963ddb6756ed768aafcace13ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -fdump-tree-ompexp" } */

int
main (void)
{
#pragma omp parallel
  {
    extern void foo (void);
    foo ();
  }
  return 0;
}


/* Check for new function notification in ompexp dump.  */
/* { dg-final { scan-tree-dump-times "Added new low gimple function main\\._omp_fn\\.0 to callgraph" 1 "ompexp" } } */