1 // Tests that the friend function with-in an class definition in the header unit is still implicit inline.
3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -xc++-user-header -emit-header-unit %t/foo.h -o %t/foo.pcm
6 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -fmodule-file=%t/foo.pcm %t/user.cpp \
7 // RUN: -S -emit-llvm -disable-llvm-passes -o - | FileCheck %t/user.cpp
13 foo(int v
) : value(v
) {}
15 friend int getFooValue(foo f
) {
24 return getFooValue(f
);
27 // CHECK: define{{.*}}linkonce_odr{{.*}}@_Z11getFooValue3foo