re PR c/67730 (No warning when returning NULL in void function)
authorMarek Polacek <polacek@redhat.com>
Fri, 2 Oct 2015 18:01:50 +0000 (18:01 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 2 Oct 2015 18:01:50 +0000 (18:01 +0000)
commit1c7485afda66c17e00d3dcdce2ef9bf9106d3cda
treed5d60aff6ad3a5769953eceda32f81ad7a05817c
parent12651878c680a8568e4d6c03b72d05728f0637fc
re PR c/67730 (No warning when returning NULL in void function)

PR c/67730
* c-typeck.c (convert_for_assignment): Use the expansion point
location throughout.

* gcc.dg/pr67730-1.c: New test.
* gcc.dg/pr67730-2.c: New test.
* gcc.dg/pr67730.h: New test.

From-SVN: r228408
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67730-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr67730-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr67730.h [new file with mode: 0644]