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:
parent
0e0997a2d5
commit
ca0f27b5a4
@ -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
|
||||
|
@ -20,7 +20,7 @@ stub(int num, ...)
|
||||
int
|
||||
main()
|
||||
{
|
||||
stub(1, "ab", "bc", "cx", 0);
|
||||
stub(1, "ab", "bc", "cx", (char *)0);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user