pr64824.c 248 B

1234567891011121314151617
  1. /* PR c/64824 */
  2. /* { dg-do run } */
  3. /* { dg-options "-O2 -fopenmp" } */
  4. int
  5. main ()
  6. {
  7. long long a;
  8. long long b = 1LL;
  9. int c = 3;
  10. #pragma omp atomic capture
  11. a = b = c << b;
  12. if (b != 6LL || a != 6LL)
  13. __builtin_abort ();
  14. return 0;
  15. }