From 6a15bde84fd37d5599fa4e298d06ed2c52243bac Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 16 May 2013 00:45:20 +0000 Subject: [PATCH] Add a test to verify that -flimit-debug-info is working in some way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181963 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/debug-info-limit.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/CodeGenCXX/debug-info-limit.cpp b/test/CodeGenCXX/debug-info-limit.cpp index deebbdd65b..f15dce5ce8 100644 --- a/test/CodeGenCXX/debug-info-limit.cpp +++ b/test/CodeGenCXX/debug-info-limit.cpp @@ -12,3 +12,17 @@ A *foo (A* x) { return a; } +// Verify that we're not emitting a full definition of B in limit debug mode. +// RUN: %clang -emit-llvm -g -flimit-debug-info -S %s -o - | FileCheck %s +// CHECK-NOT: TAG_member + +class B { +public: + int y; +}; + +extern int bar(B *b); +int baz(B *b) { + return bar(b); +} + -- 2.40.0