summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lineno1.C
blob: 810052250d31d2c9a7159d2d8033f2b4ee4bbf22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// { dg-options "-w" }
// Submitted by Nathan Sidwell <nathan@acm.org>
// Bug: g++ was giving the wrong line number for statics.

class A
{
  A();				// { dg-error "" } private
  ~A();				// { dg-error "" } private
};

static A a;			// { dg-error "" } here