testsuite: Compile asan_test.C with -Wno-alloc-size-larger-than
commita5090de45af6c9c0f93306de4b6a4d3b56fccd94
authorUros Bizjak <ubizjak@gmail.com>
Thu, 5 Mar 2020 16:51:11 +0000 (5 17:51 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 5 Mar 2020 16:51:11 +0000 (5 17:51 +0100)
tree3bbb614cae7bc58e11131d3c12a8384fd216e03c
parent6a7052832a4791047b0ff4f18dcbb55c93a7336c
testsuite: Compile asan_test.C with -Wno-alloc-size-larger-than

asan_test.cc tries to allocate 0xf0000000 bytes for 32bit targets in
a disabled DISABLED_DemoOOM test.  Since the testcase is compiled with
-Werror, the compilation fails with:

error: argument 1 value '4026531840' exceeds maximum object size 2147483647

Compile with -Wno-alloc-size-larger-than to avoid compilation failure.

* g++.dg/asan/asan_test.C (dg-options): Add
-Wno-alloc-size-larger-than.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/asan_test.C