aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/template4.C
blob: 8d86fa37ab67c62a6157dc3557e432fc3ae09c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// prms-id: 10166

template <class A>
class B {
  public:
    int f() {
      for(int x=0;x<10;x++) {
        continue;
        return 1;
     }
     return 0;
   }
  private:
    A w;
};

main() {
  B<int> c;
  return c.f();
}