summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/for1.C
blob: baffd424a41151e778f99bf9e88c80d9f15eeba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/13663

struct S {
  void f();
};

void g(int);
void g(double);

void h () {
  S s;
  for (;;s.f); // { dg-error "" }
  for (;;g); // { dg-error "" }
}