Module Name: src Committed By: kamil Date: Fri Aug 3 04:18:40 UTC 2018
Added Files: src/tests/lib/libc/misc: Makefile t_ubsan.c t_ubsanxx.cpp Log Message: Import micro-UBSan ATF tests These tests are used only when a distribution is built without MKSANITIZER and without MKLIBCSANITIZER. They build the ubsan.c micro-implementation in userland as a standalone library (a .c file linked into tests). The code generation part emits symbols that are handled by uUBSan. Tested with Clang amd64 + i386 and GCC amd64 + i386. There are two sets of tests: C code generation and C++ code generation. There are various little differences that are handled with proper ifdefs. Clang 7svn has significantly more checks for Undefined Behavior than GCC 5.x. Some of the tests are or might be amd64 and/or i386 specific and are marked with proper ifdefs and comments according to the compiler documentation. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/misc/Makefile \ src/tests/lib/libc/misc/t_ubsan.c src/tests/lib/libc/misc/t_ubsanxx.cpp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.