aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/pr114691.C
blob: f11731f2d5d04ae4e25ed330692569c8c39c2743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/114691
// { dg-do compile }
// { dg-options "-O2 -Wall" }

void qux (int);
int foo (int);

void
bar (int x)
{
  #pragma GCC novector
  while (int y = foo (x))	// { dg-bogus "ignoring loop annotation" }
    qux (y);
}

void
baz (int x)
{
  #pragma GCC novector
  for (; int y = foo (x); )	// { dg-bogus "ignoring loop annotation" }
    qux (y);
}