summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/lineno.C
blob: bd5a393e50e0d2c3cec211228fc8494c04eee1ce (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// Bug; g++ binds a function definition to the line number of a later decl.

void foo () { }			// { dg-error "" } redeclared
void foo ();			// { dg-bogus "" } invalid binding
void foo () { }			// { dg-error "" } redeclared