brintos

brintos / llvm-project-archived public Read only

0
0
Text · 430 B · b103b14 Raw
21 lines · cpp
1// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s2 3class MyFriend;4 5class SomeClass {6  friend class MyFriend;7  typedef int SomeType;8};9 10SomeClass *x;11 12struct MyFriend {13  static void func(SomeClass::SomeType) {14  }15};16 17// Emitting debug info for friends unnecessarily bloats debug info without any18// known benefit or debugger feature that requires it. Re-enable this is a19// use-case appears.20// CHECK-NOT: DW_TAG_friend21