diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-16 18:38:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-16 18:38:36 +0000 |
commit | d70f3c20b8c0ff71638ac2ee774b4e5a021be521 (patch) | |
tree | f02b74263e6ef2fb0e5c853a3991a384ac7b5ba7 /clang/test/CodeGenCXX/debug-info-static-member.cpp | |
parent | 78be534c87b207734a28fc9eb0e4b7e58c5bccdf (diff) | |
download | bcm5719-llvm-d70f3c20b8c0ff71638ac2ee774b4e5a021be521.tar.gz bcm5719-llvm-d70f3c20b8c0ff71638ac2ee774b4e5a021be521.zip |
DebugInfo: Follow up to r219736, also test/demonstrate that we emit the constant value in this case as well.
llvm-svn: 219943
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-static-member.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-static-member.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-static-member.cpp b/clang/test/CodeGenCXX/debug-info-static-member.cpp index 2a4f0c3dcd8..cbe4acd4dd7 100644 --- a/clang/test/CodeGenCXX/debug-info-static-member.cpp +++ b/clang/test/CodeGenCXX/debug-info-static-member.cpp @@ -48,10 +48,12 @@ int main() // Verify that even when a static member declaration is created lazily when // creating the definition, the declaration line is that of the canonical -// declaration, not the definition. +// declaration, not the definition. Also, since we look at the canonical +// definition, we should also correctly emit the constant value (42) into the +// debug info. struct V { virtual ~V(); // cause the definition of 'V' to be omitted by no-standalone-debug optimization static const int const_va = 42; }; -// CHECK: ; [ DW_TAG_member ] [const_va] [line [[@LINE-2]], +// CHECK: i32 42} ; [ DW_TAG_member ] [const_va] [line [[@LINE-2]], const int V::const_va; |