blob: 681473f26c8efa824e4f08694142561253c6112d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-do assemble }
// Bug: g++ tries to build up a mangled name for its ideal match, which
// fails for one call below.
extern const char foo[];
extern const char baz[10];
extern const char *fred;
struct A {
void f(const char *);
} *a;
void bing(const char *);
int main ()
{
a->f(foo); // { dg-bogus "" } because foo's size unknown.
a->f(baz);
a->f(fred);
bing(fred);
bing(foo);
bing(baz);
}
|