[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / friend3.cpp
blob8b83ca78d4030ce3adcee587f2e35ec94e1586ff
1 // RUN: %clang_cc1 -S -triple %itanium_abi_triple -std=c++11 -emit-llvm %s -o - | FileCheck %s
3 namespace pr8852 {
4 void foo();
5 struct S {
6 friend void foo() {}
7 };
9 void main() {
10 foo();
12 // CHECK: define {{.*}} @_ZN6pr88523fooEv
15 namespace pr9518 {
16 template<typename T>
17 struct provide {
18 friend T f() { return T(); }
21 void g() {
22 void f();
23 provide<void> p;
24 f();
26 // CHECK: define {{.*}} @_ZN6pr95181fEv