diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/CodeGenCXX/debug-info-friend.cpp | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/CodeGenCXX/debug-info-friend.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-friend.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/test/CodeGenCXX/debug-info-friend.cpp b/test/CodeGenCXX/debug-info-friend.cpp index c50f281a3b8f..b103b142a2ae 100644 --- a/test/CodeGenCXX/debug-info-friend.cpp +++ b/test/CodeGenCXX/debug-info-friend.cpp @@ -1,11 +1,20 @@ -// RUN: %clang -fverbose-asm -S -g %s -o - | grep DW_TAG_friend +// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s class MyFriend; -class SomeClass -{ - friend class MyFriend; +class SomeClass { + friend class MyFriend; + typedef int SomeType; }; -SomeClass sc; +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 |