aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/ubsan-function-attributed.c
blob: ae6700dbde2102153a5bc809cc79867516e3cf8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -S -triple x86_64 -std=c17 -fsanitize=function %s -o - | FileCheck %s --check-prefixes=CHECK

// CHECK: .long	248076293
void __attribute__((ms_abi)) f(void) {}

// CHECK: .long	905068220
void g(void) {}

// CHECK: .long	1717976574
void __attribute__((ms_abi)) f_no_prototype() {}

// CHECK: .long	1717976574
void g_no_prototype() {}