diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-17 20:01:53 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-17 20:01:53 +0000 |
commit | 949939cdbb2dfcc13a6c67c8e85b4843a38ecb82 (patch) | |
tree | 6ad5165ba34f09afe0b4b3aeac66260c766ec1be /clang/test/CodeGenCXX/debug-info-static-member.cpp | |
parent | 8d951fbc188ae533b343ff7f94c72214fd7579ec (diff) | |
download | bcm5719-llvm-949939cdbb2dfcc13a6c67c8e85b4843a38ecb82.tar.gz bcm5719-llvm-949939cdbb2dfcc13a6c67c8e85b4843a38ecb82.zip |
PR16927: Don't assert (or, previously, skip) static data members of enumeration type
llvm-svn: 188612
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, 5 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-static-member.cpp b/clang/test/CodeGenCXX/debug-info-static-member.cpp index 774f7b1727c..cd48f6b8b89 100644 --- a/clang/test/CodeGenCXX/debug-info-static-member.cpp +++ b/clang/test/CodeGenCXX/debug-info-static-member.cpp @@ -1,7 +1,9 @@ // RUN: %clangxx -target x86_64-unknown-unknown -g -O0 %s -emit-llvm -S -o - | FileCheck %s // PR14471 - +enum X { + Y +}; class C { static int a; @@ -13,6 +15,7 @@ public: static int c; const static int const_c = 18; int d; + static X x_a; }; int C::a = 4; @@ -37,5 +40,6 @@ int main() // CHECK: metadata !"const_b", {{.*}}, float 0x{{.*}}} ; [ DW_TAG_member ] [const_b] [line {{.*}}, size 0, align 0, offset 0] [protected] [static] // CHECK: ![[DECL_C:[0-9]+]] {{.*}} metadata !"c", {{.*}} [ DW_TAG_member ] [c] [line {{.*}}, size 0, align 0, offset 0] [static] // CHECK: metadata !"const_c", {{.*}} [ DW_TAG_member ] [const_c] [line {{.*}}, size 0, align 0, offset 0] [static] +// CHECK: metadata !"x_a", {{.*}} [ DW_TAG_member ] [x_a] {{.*}} [static] // CHECK: metadata !"b", {{.*}} @_ZN1C1bE, metadata ![[DECL_B]]} ; [ DW_TAG_variable ] [b] {{.*}} [def] // CHECK: metadata !"c", {{.*}} @_ZN1C1cE, metadata ![[DECL_C]]} ; [ DW_TAG_variable ] [c] {{.*}} [def] |