huangcm
2025-07-01 2af87f2bbd5ba07d377b5a7f0ee0e96053f2d424
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
 
class MyFriend;
 
class SomeClass {
  friend class MyFriend;
  typedef int SomeType;
};
 
SomeClass *x;
 
struct MyFriend {
  static void func(SomeClass::SomeType) {
  }
};
 
// Emitting debug info for friends unnecessarily bloats debug info without any
// known benefit or debugger feature that requires it. Re-enable this is a
// use-case appears.
// CHECK-NOT: DW_TAG_friend