summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr41961.C
blob: 229e7d4b93935cf0f48062699685da326eaaa87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }
// { dg-require-effective-target pthread }
// { dg-options "-O3 -ftree-parallelize-loops=2" }

struct A
{
    char c[17];
      void foo();
};

void A::foo()
{
    for (int i = 0; i < 17; ++i)
          c[i] = 0;
}