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