1 /* PR middle-end/68960 */ 2 /* { dg-do run } */ 3 4 int main()5main () 6 { 7 int temp[257] __attribute__ ((aligned (256))) = { 0 }; 8 #pragma omp parallel private (temp) num_threads (2) 9 { 10 int *p = &temp[0]; 11 asm volatile ("" : "+g" (p)); 12 if (((__UINTPTR_TYPE__) p) & 255) 13 __builtin_abort (); 14 } 15 #pragma omp parallel num_threads (2) 16 #pragma omp single 17 #pragma omp task firstprivate (temp) 18 { 19 int *p = &temp[0]; 20 asm volatile ("" : "+g" (p)); 21 if (((__UINTPTR_TYPE__) p) & 255) 22 __builtin_abort (); 23 } 24 return 0; 25 } 26