rt_gccstream/gcc/testsuite/g++.old-deja/g++.other/lineno1.C

16 lines
283 B
C

// { 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