1 /* PR c/81687 */ 2 /* { dg-do link } */ 3 /* { dg-additional-options "-O2" } */ 4 5 int main()6main () 7 { 8 __label__ lab4, lab5, lab6; 9 volatile int l = 0; 10 int m = l; 11 void foo (int x) { if (x == 1) goto lab4; } 12 void bar (int x) { if (x == 2) goto lab5; } 13 void baz (int x) { if (x == 3) goto lab6; } 14 #pragma omp parallel 15 { 16 foo (m + 1); 17 lab4:; 18 } 19 #pragma omp task 20 { 21 bar (m + 2); 22 lab5:; 23 } 24 baz (m + 3); 25 lab6:; 26 return 0; 27 } 28