blob: 678d90ff78fc9e4a95045d52d9364198404f0386 [file] [log] [blame]
Fangrui Songa44c4342020-01-04 15:39:19 -08001// RUN: %clang_cc1 -triple aarch64 -emit-llvm %s -o - | FileCheck %s
2
3// CHECK: define void @f0() #0
4__attribute__((patchable_function_entry(0))) void f0() {}
5
6// CHECK: define void @f00() #0
7__attribute__((patchable_function_entry(0, 0))) void f00() {}
8
9// CHECK: define void @f2() #1
10__attribute__((patchable_function_entry(2))) void f2() {}
11
12// CHECK: define void @f20() #1
13__attribute__((patchable_function_entry(2, 0))) void f20() {}
14
15// CHECK: define void @f20decl() #1
16__attribute__((patchable_function_entry(2, 0))) void f20decl();
17void f20decl() {}
18
19/// M in patchable_function_entry(N,M) is currently ignored.
20// CHECK: attributes #0 = { {{.*}} "patchable-function-entry"="0"
21// CHECK: attributes #1 = { {{.*}} "patchable-function-entry"="2"