2 // Test pointer chain catching
3 // Copyright (C) 2000, 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Apr 2000 <nathan@nathan@codesourcery.com>
9 struct A {void fn () {}};
11 static const int const_var = 2;
24 // should not decay to void *
42 // should not decay to void *
60 // should decay to void *
78 // should decay to const void *
96 // should not decay to void *
101 // should decay to const void *
132 throw (void const* const* const*)0;
138 catch (void * const* const*)
142 catch (void const* * const*)
146 catch (void const* const* *)
150 catch (void const* const* const *)
167 catch (void const* const**)
171 catch (void const** const *)
175 catch (void * const* const *)
213 catch (C const *const *)
217 catch (B const *const *)
228 static int (*tests[])() =
251 for (ix = 0; tests[ix]; ix++)
253 int n = tests[ix] ();
257 printf ("test %d failed %d\n", ix, n);