[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-friend.cpp
blobb103b142a2ae098693c3825ef95d1c06db30785f
1 // RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
3 class MyFriend;
5 class SomeClass {
6 friend class MyFriend;
7 typedef int SomeType;
8 };
10 SomeClass *x;
12 struct MyFriend {
13 static void func(SomeClass::SomeType) {
17 // Emitting debug info for friends unnecessarily bloats debug info without any
18 // known benefit or debugger feature that requires it. Re-enable this is a
19 // use-case appears.
20 // CHECK-NOT: DW_TAG_friend