summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-friend.cpp
blob: cf6651cde18edb353c95bee857178ef983ff7da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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) {
  }
};

// CHECK: DW_TAG_friend
OpenPOWER on IntegriCloud