commit | a0d4b63d15138ca00e12df3c0573954b07ea40a8 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed Sep 02 21:01:21 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed Sep 02 21:01:21 2009 +0000 |
tree | 5265bb78803bd44c954bba49b20f75c3ca0ab0ea | |
parent | db740922628d5d8bbbd709b18ffae2c3e28c36c6 [diff] [blame] |
Fix a crash when referencing static data members. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80835 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/static-data-member.cpp b/test/CodeGenCXX/static-data-member.cpp new file mode 100644 index 0000000..6e2abcc --- /dev/null +++ b/test/CodeGenCXX/static-data-member.cpp
@@ -0,0 +1,8 @@ +// RUN: clang-cc -emit-llvm -o - %s +struct S { + static int i; +}; + +void f() { + int a = S::i; +}