2014-01-07 09:19:08 +08:00
|
|
|
// RUN: %clang_cc1 -fno-standalone-debug -x c++ -g -S -emit-llvm < %s | FileCheck %s
|
2011-10-25 07:15:17 +08:00
|
|
|
// rdar://10336845
|
|
|
|
// Preserve type qualifiers in -flimit-debug-info mode.
|
|
|
|
|
2012-02-04 07:58:39 +08:00
|
|
|
// CHECK: DW_TAG_const_type
|
2011-10-25 07:15:17 +08:00
|
|
|
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;
|
|
|
|
}
|