repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
lineno1.C
blob
810052250d31d2c9a7159d2d8033f2b4ee4bbf22
1
// { dg-do assemble }
2
// { dg-options "-w" }
3
// Submitted by Nathan Sidwell <nathan@acm.org>
4
// Bug: g++ was giving the wrong line number for statics.
5
6
class A
7
{
8
A(); // { dg-error "" } private
9
~A(); // { dg-error "" } private
10
};
11
12
static A a; // { dg-error "" } here
13
14
15