From dbe13110f59f48b4dbb7552b3ac2935acdeece7f Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 14 Apr 2012 14:01:31 +0000 Subject: Vendor import of clang trunk r154661: http://llvm.org/svn/llvm-project/cfe/trunk@r154661 --- test/CodeGenCXX/debug-info-method2.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/CodeGenCXX/debug-info-method2.cpp (limited to 'test/CodeGenCXX/debug-info-method2.cpp') diff --git a/test/CodeGenCXX/debug-info-method2.cpp b/test/CodeGenCXX/debug-info-method2.cpp new file mode 100644 index 000000000000..a927c49d307a --- /dev/null +++ b/test/CodeGenCXX/debug-info-method2.cpp @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -flimit-debug-info -x c++ -g -S -emit-llvm < %s | FileCheck %s +// rdar://10336845 +// Preserve type qualifiers in -flimit-debug-info mode. + +// CHECK: DW_TAG_const_type +class A { +public: + int bar(int arg) const; +}; + +int A::bar(int arg) const{ + return arg+2; +} + +int main() { + A a; + int i = a.bar(2); + return i; +} -- cgit v1.3