OSDN Git Service

fix implicit int
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / overload26.C
1 // Bug: g++ tries to build up a mangled name for its ideal match, which
2 // fails for one call below.
3 // Build don't link:
4
5 extern const char foo[];
6 extern const char baz[10];
7 extern const char *fred;
8
9 struct A {
10   void f(const char *);
11 } *a;
12
13 void bing(const char *);
14 int main ()
15 {
16         a->f(foo);              // gets bogus error because foo's size unknown.
17         a->f(baz);
18         a->f(fred);
19         bing(fred);
20         bing(foo);
21         bing(baz);
22 }