1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fno-standalone-debug -x c++ -g -S -emit-llvm < %s | FileCheck %s 2f4a2713aSLionel Sambuc // rdar://10336845 3f4a2713aSLionel Sambuc // Preserve type qualifiers in -flimit-debug-info mode. 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc // CHECK: DW_TAG_const_type 6f4a2713aSLionel Sambuc class A { 7f4a2713aSLionel Sambuc public: 8f4a2713aSLionel Sambuc int bar(int arg) const; 9f4a2713aSLionel Sambuc }; 10f4a2713aSLionel Sambuc bar(int arg) const11f4a2713aSLionel Sambucint A::bar(int arg) const{ 12f4a2713aSLionel Sambuc return arg+2; 13f4a2713aSLionel Sambuc } 14f4a2713aSLionel Sambuc main()15f4a2713aSLionel Sambucint main() { 16f4a2713aSLionel Sambuc A a; 17f4a2713aSLionel Sambuc int i = a.bar(2); 18f4a2713aSLionel Sambuc return i; 19f4a2713aSLionel Sambuc } 20