1 // REQUIRES: ubsan-standalone
2 // REQUIRES: arch=x86_64
3 // 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
4 #include <signal.h>
5 #include <stdio.h>
6 
7 int main() {
8   struct sigaction old_action;
9   sigaction(SIGINT, nullptr, &old_action);
10   // CHECK: Warning: REAL(sigaction_symname) == nullptr.
11   printf("PASS\n");
12   // CHECK: PASS
13 }
14