aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/cfi-unchecked-callee.cpp
blob: af84996835930e31e789ce8823afd86fb11a8e72 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s


// CHECK: FunctionDecl [[PTR:0x[a-z0-9]*]] {{.*}}func 'void () __attribute__((cfi_unchecked_callee))'
__attribute__((cfi_unchecked_callee))
void func(void);

// CHECK-NEXT: FunctionDecl {{0x[a-z0-9]*}} prev [[PTR]] {{.*}}func 'void () __attribute__((cfi_unchecked_callee))'
void func(void) {}