summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error1.C
blob: 927efef8bbbcb90a5d5139fc4fab82801829319e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }

// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 18 Dec 2001 <nathan@nathan@codesourcery.com>

// PR 90, stupid error message `(this + 160)'

class foo {
  public:
  int fudge[40];
  int bar [40];
  inline int access(int i) {
    return bar(i);  // { dg-error "cannot be used as a function" "" }
  }
};