diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-29 03:16:56 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-29 03:16:56 +0000 |
commit | ac6260187b6b2f26faa9264d170d649a501f58a9 (patch) | |
tree | a6b10c78e37cd077116267fe9d014c6941642b50 /test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp | |
parent | b732fcebcf2ce5c24a29d660e9400d7dc9f86b69 (diff) |
Make the odr-use logic work correctly for constant-expressions. PR12006.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp index e7eb5af891..9da9fcea1f 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp @@ -52,9 +52,8 @@ void f1(int i) { // expected-note{{declared here}} auto m1 = [=]{ int const M = 30; auto m2 = [i]{ - // FIXME: We odr-use here, but we shouldn't. - // int x[N][M]; - // x[0][0] = i; + int x[N][M]; + x[0][0] = i; }; (void)N; (void)M; |