1 # Check that DMEM zero address access can be trapped.
3 # sim: --error-null-deref
5 # output: core: 4 byte read to unmapped address 0x0 at *\n
7 # Copyright (C) 2016-2024 Free Software Foundation, Inc.
8 # Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
10 # This file is part of the GNU simulators.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 3 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 .include "testutils.inc"