Retro68/gcc/libgomp/testsuite/libgomp.c/nestedfn-2.c

21 lines
196 B
C
Raw Normal View History

2012-03-27 23:13:14 +00:00
/* { dg-do run } */
extern void abort (void);
int
main (void)
{
int i;
void
foo (void)
{
#pragma omp master
i += 8;
}
i = 4;
foo ();
if (i != 12)
abort ();
return 0;
}