c-typeck.c (null_pointer_constant_p): New function.
authorJoseph Myers <joseph@codesourcery.com>
Sun, 4 Dec 2005 23:04:59 +0000 (23:04 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 4 Dec 2005 23:04:59 +0000 (23:04 +0000)
commit6aa3c60d7f54a8d28ec22b6045ba0bd79e0f354b
tree57f2351c8ddd1d0c929a34d992db282e82ab724b
parent1344f9a3189ed48181c844c7d2cc1f70511ab898
c-typeck.c (null_pointer_constant_p): New function.

* c-typeck.c (null_pointer_constant_p): New function.
(build_conditional_expr, build_c_cast, convert_for_assignment,
build_binary_op): Use it.

testsuite:
* gcc.dg/c90-const-expr-5.c, gcc.dg/c99-const-expr-5.c: New tests.

From-SVN: r108022
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-const-expr-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-const-expr-5.c [new file with mode: 0644]