3 // Avoid -pedantic-error default
6 // Make sure the functions referenced by various forms of
7 // address-taking are marked as used and compiled in.
11 ac[0](); // { dg-warning "arithmetic" }
19 template <typename U> U cc() {}
27 template <typename U> static U a(x*) {}
28 static void a(long) {}
29 static void a(void *) {}
31 void (*p0)(void*) = x().a;
44 template <typename U> static U a(z*) {}
45 static void a(long) {}
46 static void a(void *) {}
48 void (*p0)(void*) = z().a;
59 int main(int argc, char *argv[]) {