mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
b1a2ee871d
git-svn-id: file:///svn/tokudb@3866 c7de825b-a66e-492c-adef-691d508d4ae1
28 lines
659 B
C
28 lines
659 B
C
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
#include "toku_assert.h"
|
|
#include "brttypes.h"
|
|
#include <signal.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
static __attribute__((__noreturn__)) void catch_abort (int sig __attribute__((__unused__))) {
|
|
exit(1);
|
|
}
|
|
|
|
static BOOL foo (void) {
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
int main (int argc, const char *argv[]) {
|
|
signal (SIGABRT, catch_abort);
|
|
if (argc!=2) { printf("argcount should be 2.\n"); exit(1); }
|
|
const char *str=argv[1];
|
|
assert(strcmp(str,"ok")==0);
|
|
assert(foo());
|
|
assert(0x8000000000000000ULL);
|
|
assert(0x4000000000000000ULL);
|
|
assert(argv[1]);
|
|
return 0;
|
|
}
|