summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/forscope2.C
blob: 1fed957a041ff33658e6d7671782cbdc3baac5af (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

struct S {
  void foo() {
     for (_ptr; ;) {}  // { dg-error "not declared" }
     _ptr = 0;
    }
};