blob: 798718b563d46e35ba8835ae8efa976be6aceb82 [file] [log] [blame]
/* PR c/85696 */
#ifndef __cplusplus
void
foo (int n, int a[][n])
{
#pragma omp parallel shared(a) default(none)
#pragma omp master
a[23][0] = 42;
}
#endif
void
bar (int n, void *p)
{
int (*a)[n] = (int (*)[n]) p;
#pragma omp parallel shared(a) default(none)
#pragma omp master
a[23][0] = 42;
}