1 // REQUIRES: ubsan-standalone 2 // REQUIRES: arch=x86_64 3 // REQUIRES: librt_has_multf3 4 // RUN: %clangxx -fsanitize=bool -static %s -o %t && UBSAN_OPTIONS=handle_segv=0:handle_sigbus=0:handle_sigfpe=0 %run %t 2>&1 | FileCheck %s 5 #include <signal.h> 6 #include <stdio.h> 7 main()8int main() { 9 struct sigaction old_action; 10 sigaction(SIGINT, nullptr, &old_action); 11 // CHECK: Warning: REAL(sigaction_symname) == nullptr. 12 printf("PASS\n"); 13 // CHECK: PASS 14 } 15