Commit ca0f27b5 by Alexander Monakov Committed by Alexander Monakov

980716-1.c: Avoid undefined behavior due to passing terminating NULL as int rather than pointer.

	* gcc.c-torture/execute/980716-1.c: Avoid undefined behavior due to
	passing terminating NULL as int rather than pointer.

From-SVN: r231458
parent 0e0997a2
2015-12-09 Alexander Monakov <amonakov@ispras.ru>
* gcc.c-torture/execute/980716-1.c: Avoid undefined behavior due to
passing terminating NULL as int rather than pointer.
2015-12-09 Marek Polacek <polacek@redhat.com>
PR tree-optimization/66949
......
......@@ -20,7 +20,7 @@ stub(int num, ...)
int
main()
{
stub(1, "ab", "bc", "cx", 0);
stub(1, "ab", "bc", "cx", (char *)0);
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment