xref: /llvm-project/clang/test/CodeGen/ubsan-function-attributed.c (revision bb5f64a6fc059fcf81b4b9ffe035f5063956ddd8)
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
f(void)5 void __attribute__((ms_abi)) f(void) {}
6 
7 // CHECK: .long	905068220
g(void)8 void g(void) {}
9 
10 // CHECK: .long	1717976574
f_no_prototype()11 void __attribute__((ms_abi)) f_no_prototype() {}
12 
13 // CHECK: .long	1717976574
g_no_prototype()14 void g_no_prototype() {}
15