X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/b1e5676a0b41e67990dc949923aa4d5bdb3f1a73..318e941af5ec3b0622212ba3d2968efd3c961587:/tests/decl-good.at diff --git a/tests/decl-good.at b/tests/decl-good.at index d22675c..002e482 100644 --- a/tests/decl-good.at +++ b/tests/decl-good.at @@ -212,6 +212,17 @@ SIMPLE_DECLS_EXPLAIN( SIMPLE_DECLS_EXPLAIN( [[int x, y], [m4_n([declare x as int])declare y as int]]) +# Check output spacing around qualified pointers +SIMPLE_DECLS_DECLARE( + [[[int (* const)[]]], [type const pointer to array of int]], + [[[int (* volatile const)()]], + [type volatile const pointer to function returning int]], + [[[int (int * restrict const)]], + [type function (restrict const pointer to int) returning int]], + [[[int * const x]], [declare x as const pointer to int]], + [[[int * volatile * restrict x]], + [declare x as restrict pointer to volatile pointer to int]]) + # Test the simplify command with multiple declarators. This is the only # command in cdecl99 which will print a single C declaration with more than # one full declarator.