diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-12 00:02:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-12 00:02:44 +0000 |
commit | dabc3e90cc385214a53064d8c44edbece9891ddf (patch) | |
tree | 303797eaff783800a574de2d1b1ee6a2395f6a45 /test/CodeGenCXX/debug-info-class.cpp | |
parent | f643264005c428030a83e0147703b919eb31b41d (diff) |
Emit debug info for static const class member.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-class.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-class.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-class.cpp b/test/CodeGenCXX/debug-info-class.cpp new file mode 100644 index 0000000000..151c5f9053 --- /dev/null +++ b/test/CodeGenCXX/debug-info-class.cpp @@ -0,0 +1,12 @@ +// RUN: %clang -emit-llvm -g -S %s -o - | grep HdrSize +struct A { + int one; + static const int HdrSize = 52; + int two; + A() { + int x = 1; + } +}; +int main() { + A a; +} |