re PR c/89525 (inform messages from -Wbuiltin-declaration-mismatch even with -w)
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb98.C
blob64a1cb5bec26afebcf5452920bcf7ee1a214b385
1 // { dg-do assemble  }
2 // Error:    Internal compiler error in egcs 1998/05/28 snapshot.
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     }
13     extern int b[];
15     void f()
16     {
17       extent(b);  // { dg-error "" } no matching function
18       // { dg-message "(candidate|mismatched types)" "candidate note" { target *-*-* } .-1 }
19     }