| commit | caa23f0708c2c9a54b5ea42a3fb2723afa2f5801 | [log] [tgz] |
|---|---|---|
| author | Devang Patel <dpatel@apple.com> | Thu Aug 12 00:02:44 2010 +0000 |
| committer | Devang Patel <dpatel@apple.com> | Thu Aug 12 00:02:44 2010 +0000 |
| tree | 7faf7f307b96fae3f1d8255fadfb3797031c6d03 | |
| parent | a3025fcd457fcff0cacb75f444d7e0e92e5bb1cd [diff] [blame] |
Emit debug info for static const class member. llvm-svn: 110885
diff --git a/clang/test/CodeGenCXX/debug-info-class.cpp b/clang/test/CodeGenCXX/debug-info-class.cpp new file mode 100644 index 0000000..151c5f9 --- /dev/null +++ b/clang/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; +}