diff options
author | John McCall <rjmccall@apple.com> | 2010-02-08 21:46:50 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-08 21:46:50 +0000 |
commit | 88786862424cb2d478516d911709dc19c962af9c (patch) | |
tree | df9886634304098dbc0bca7beb48ef0775de0014 /test/CodeGenCXX/const-init.cpp | |
parent | f1904a8a3fceb023e74a8bedc665c5b12415d2ac (diff) |
Emit global references with constant initializers as constants. Fixes PR5585.
The standard actually says that such references should have internal linkage,
but gcc doesn't do that, so we probably can't get away with it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/const-init.cpp')
-rw-r--r-- | test/CodeGenCXX/const-init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenCXX/const-init.cpp b/test/CodeGenCXX/const-init.cpp index 874b5f64e2..9cfce7ace8 100644 --- a/test/CodeGenCXX/const-init.cpp +++ b/test/CodeGenCXX/const-init.cpp @@ -2,11 +2,11 @@ // CHECK: @a = global i32 10 int a = 10; -// CHECK: @ar = global i32* @a +// CHECK: @ar = constant i32* @a int &ar = a; void f(); -// CHECK: @fr = global void ()* @_Z1fv +// CHECK: @fr = constant void ()* @_Z1fv void (&fr)() = f; struct S { int& a; }; |