Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 // { dg-options "-w" }
3 // Submitted by Nathan Sidwell <[email protected]>
4 // Bug: g++ was giving the wrong line number for statics.
5
6 class A
7 {
8 A(); // { dg-message "" } private
9 ~A(); // { dg-message "" } private
10 };
11
12 static A a; // { dg-error "" } here
13
14
15