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
This commit is contained in:
Alexander Monakov 2015-12-09 18:42:41 +03:00 committed by Alexander Monakov
parent 0e0997a2d5
commit ca0f27b5a4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -20,7 +20,7 @@ stub(int num, ...)
int
main()
{
stub(1, "ab", "bc", "cx", 0);
stub(1, "ab", "bc", "cx", (char *)0);
exit (0);
}