Add a test case for r128957. It fixed a bug!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128966 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2011-04-06 00:01:52 +00:00
parent ddd72ac675
commit 97edcb6393
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
// Radar 9239104
class Class
{
public:
//CHECK: DW_TAG_const_type
int foo (int p) const {
return p+m_int;
}
protected:
int m_int;
};
Class c;