clang/test/CodeGen/ubsan-function-attributed.c
raw| 1 | // REQUIRES: x86-registered-target |
| 2 | // RUN: %clang_cc1 -S -triple x86_64 -std=c17 -fsanitize=function %s -o - | FileCheck %s --check-prefixes=CHECK |
| 3 | |
| 4 | // CHECK: .long 248076293 |
| 5 | void __attribute__((ms_abi)) f(void) {} |
| 6 | |
| 7 | // CHECK: .long 905068220 |
| 8 | void g(void) {} |
| 9 | |
| 10 | // CHECK: .long 1717976574 |
| 11 | void __attribute__((ms_abi)) f_no_prototype() {} |
| 12 | |
| 13 | // CHECK: .long 1717976574 |
| 14 | void g_no_prototype() {} |