re PR c/56980 (C pretty-printer does not handle well pointer to typedef of struct)
authorMarek Polacek <polacek@redhat.com>
Fri, 24 Oct 2014 16:29:56 +0000 (16:29 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 24 Oct 2014 16:29:56 +0000 (16:29 +0000)
commit90f3520ea50cee07c83bd51a1eced989915a8523
tree3825e01b2814f972b29c284a1989ce1e281e6078
parent820aecbf23385cd7c2acc8247dee468e02eeb8e7
re PR c/56980 (C pretty-printer does not handle well pointer to typedef of struct)

PR c/56980
* c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
print "struct"/"union"/"enum" for typedefed names.

* gcc.dg/pr56980.c: New test.

From-SVN: r216674
gcc/c-family/ChangeLog
gcc/c-family/c-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56980.c [new file with mode: 0644]