diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-20 01:38:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-20 01:38:33 +0000 |
commit | 5016a70c183a50845a0421802d161093dd0643f6 (patch) | |
tree | f06564c7146ab4ad5e59659dc1b67741c07e2b17 /test/CodeGenCXX/for-range.cpp | |
parent | 0872a06d1ee1a3b62ef833f955051418d18006a1 (diff) |
DR1472: A reference isn't odr-used if it has preceding initialization,
initialized by a reference constant expression.
Our odr-use modeling still needs work here: we don't yet implement the 'set of
potential results of an expression' DR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/for-range.cpp')
-rw-r--r-- | test/CodeGenCXX/for-range.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/for-range.cpp b/test/CodeGenCXX/for-range.cpp index 929e33ca96..926fe445a5 100644 --- a/test/CodeGenCXX/for-range.cpp +++ b/test/CodeGenCXX/for-range.cpp @@ -40,7 +40,7 @@ void for_array() { // CHECK-NOT: 5begin // CHECK-NOT: 3end // CHECK: getelementptr {{.*}}, i32 0 - // CHECK: getelementptr {{.*}}, i64 5 + // CHECK: getelementptr {{.*}}, i64 1, i64 0 // CHECK: br label %[[COND:.*]] // CHECK: [[COND]]: |