summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-class.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-08-12 00:02:44 +0000
committerDevang Patel <dpatel@apple.com>2010-08-12 00:02:44 +0000
commitcaa23f0708c2c9a54b5ea42a3fb2723afa2f5801 (patch)
tree7faf7f307b96fae3f1d8255fadfb3797031c6d03 /clang/test/CodeGenCXX/debug-info-class.cpp
parenta3025fcd457fcff0cacb75f444d7e0e92e5bb1cd (diff)
downloadbcm5719-llvm-caa23f0708c2c9a54b5ea42a3fb2723afa2f5801.tar.gz
bcm5719-llvm-caa23f0708c2c9a54b5ea42a3fb2723afa2f5801.zip
Emit debug info for static const class member.
llvm-svn: 110885
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-class.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-class.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-class.cpp b/clang/test/CodeGenCXX/debug-info-class.cpp
new file mode 100644
index 00000000000..151c5f90534
--- /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;
+}
OpenPOWER on IntegriCloud