blob: 903d691dd42aebc56ca44455541232ff21dc63bf [file] [edit]
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-attributes --filter "call " --include-generated-funcs --version 6
// RUN: %clang_cc1 -triple x86_64 -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
typedef unsigned long size_t;
size_t strlen(const char *s);
void *strlen_ptr = strlen;
extern inline __attribute__((always_inline)) __attribute__((gnu_inline))
__attribute__((section("my_sec"))) size_t strlen(const char *s) {
return 0;
}
size_t call_strlen(const char *s) {
return strlen(s);
}
// CHECK: Function Attrs: noinline nounwind optnone
// CHECK-LABEL: define dso_local i64 @call_strlen(
// CHECK-SAME: ptr noundef [[S:%.*]]) #[[ATTR1:[0-9]+]] {
// CHECK: [[CALL:%.*]] = call i64 @strlen.inline(ptr noundef [[TMP0:%.*]]) #[[ATTR3:[0-9]+]]
//
//
// CHECK: Function Attrs: alwaysinline nounwind
// CHECK-LABEL: define internal i64 @strlen.inline(
// CHECK-SAME: ptr noundef [[S:%.*]]) #[[ATTR2:[0-9]+]] {