You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
308 B
24 lines
308 B
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2016 Linux Test Project
|
|
*/
|
|
|
|
/*
|
|
* Test for segfault.
|
|
*/
|
|
|
|
#include "tst_test.h"
|
|
|
|
static void do_test(void)
|
|
{
|
|
volatile char *ptr = NULL;
|
|
|
|
*ptr = 0;
|
|
|
|
tst_res(TPASS, "Not reached");
|
|
}
|
|
|
|
static struct tst_test test = {
|
|
.test_all = do_test,
|
|
};
|