Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/eb98.C

raw
1 // { dg-do assemble }
2 // Error: Internal compiler error in egcs 1998/05/28 snapshot.
3
4
5 template<class T, unsigned int Length>
6 inline
7 unsigned int
8 extent(T (&x)[Length]) // { dg-message "note" }
9 {
10 return Length;
11 }
12
13 extern int b[];
14
15 void f()
16 {
17 extent(b); // { dg-error "" } no matching function
18 // { dg-message "(candidate|mismatched types)" "candidate note" { target *-*-* } .-1 }
19 }