1 // RUN: %clang_cc1 -triple %ms_abi_triple -fms-extensions -emit-llvm -O0 -o - %s | FileCheck %s
3 // Friend functions defined in classes are emitted.
4 // CHECK: define weak_odr dso_local dllexport void @"?friend1@@YAXXZ"()
6 friend __declspec(dllexport
) void friend1() {}
9 // But function templates and functions defined in class templates are not
15 template<typename
> friend __declspec(dllexport
) void friend2() {}
17 template<typename
> struct FuncFriend3
{
18 friend __declspec(dllexport
) void friend3() {}
20 friend __declspec(dllexport
) void friend4() {}