blob: d3d3392e451d60bad3ed9b6f2134dfe308905491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
// Build don't link:
// GROUPS passed error-reporting
template <char C>
class badoo
{
};
template <int (*F) (int)>
class doowop
{
};
struct A
{
int a;
~A () { a = 0; }
operator int () { return a; }
};
extern "C" int atoi (char *);
int (*fee)(char *) = atoi;
int (**bar)(char *) = &fee;
char *s = "4";
char **sp = &s;
char ***spp = &sp;
int foo (int a = (**bar) (s))
{
return doowop<foo>::bar; // ERROR - not a member
} // ERROR - non-void
int foo2 (int (*a)(int) = &foo)
{
undef4 (1); // ERROR - implicit declaration
return 1;
}
class X{
class Y{};
};
typedef int const * bart ();
typedef bart const * const * bar2;
bar2 baz (X::Y y)
{
X::Y f;
bar2 wa [5];
wa[0] = baz(f);
undef2 (1); // ERROR - implicit declaration
} // ERROR - non-void
int ninny ()
{
struct A
{
static int ninny2 () { return badoo<'\001'>::foo; } // ERROR - not a member
};
return A::ninny2();
}
int darg (char X::*p)
{
undef3 (1); // ERROR - implicit declaration
} // ERROR - non-void
|