mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
958c447641
git-svn-id: file:///svn/toku/tokudb@45903 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
822 B
C++
21 lines
822 B
C++
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
|
#ident "$Id$"
|
|
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
|
|
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
|
|
#include <stdio.h>
|
|
#include <toku_assert.h>
|
|
#include <stdlib.h>
|
|
#include <signal.h>
|
|
|
|
|
|
static __attribute__((__noreturn__)) void catch_abort (int sig __attribute__((__unused__))) {
|
|
exit(1);
|
|
}
|
|
|
|
int main(void) {
|
|
signal (SIGABRT, catch_abort);
|
|
int result = 42;
|
|
assert_zero(result);
|
|
return 0;
|
|
}
|