Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s |
Anders Carlsson | 3bb9269 | 2010-01-26 17:43:42 +0000 | [diff] [blame^] | 2 | |
3 | // CHECK: @_ZN1A1aE = constant i32 10 | ||||
4 | |||||
5 | // PR5564. | ||||
6 | struct A { | ||||
7 | static const int a = 10; | ||||
8 | }; | ||||
9 | |||||
10 | const int A::a; | ||||
11 | |||||
Anders Carlsson | a0d4b63 | 2009-09-02 21:01:21 +0000 | [diff] [blame] | 12 | struct S { |
13 | static int i; | ||||
14 | }; | ||||
15 | |||||
16 | void f() { | ||||
17 | int a = S::i; | ||||
18 | } |