2015-03-03 03:34:27 +08:00
|
|
|
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
|
Adding Msan support to FreeBSD
Summary:
Enabling the memory sanitizer support for FreeBSD, most of unit tests are compatible.
- Adding fstat and stressor_r interceptors.
- Updating the struct link_map access since most likely the struct Obj_Entry had been updated since.
- Disabling few unit tests until further work is needed (or we can assume it can work in real world code).
Patch by: David CARLIER
Reviewers: vitalybuka, krytarowski
Reviewed By: vitalybuka
Subscribers: eugenis, dim, srhines, emaste, kubamracek, mgorny, fedor.sergeev, hintonda, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D43080
llvm-svn: 326644
2018-03-03 19:43:11 +08:00
|
|
|
// XFAIL: freebsd
|
2013-09-13 19:27:38 +08:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
extern char *tzname[2];
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
if (!strlen(tzname[0]) || !strlen(tzname[1]))
|
|
|
|
exit(1);
|
|
|
|
tzset();
|
|
|
|
if (!strlen(tzname[0]) || !strlen(tzname[1]))
|
|
|
|
exit(1);
|
|
|
|
return 0;
|
|
|
|
}
|