diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-10-03 16:30:22 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-10-03 16:30:22 +0000 |
| commit | de55f647ff07469afd22628424ffc289cdc88d94 (patch) | |
| tree | acfb3fcc346267435e2ece240987a7407a2d1c27 /clang/test/CodeGenCXX/references.cpp | |
| parent | c46bf276e17a9e88f220cb4a40cdfce7fdd3e53f (diff) | |
| download | bcm5719-llvm-de55f647ff07469afd22628424ffc289cdc88d94.tar.gz bcm5719-llvm-de55f647ff07469afd22628424ffc289cdc88d94.zip | |
Ignore No-op casts when evaluating lvalue expressions. Fixes PR5122.
llvm-svn: 83267
Diffstat (limited to 'clang/test/CodeGenCXX/references.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/references.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp index 6f4c1032efa..c235521d43b 100644 --- a/clang/test/CodeGenCXX/references.cpp +++ b/clang/test/CodeGenCXX/references.cpp @@ -95,3 +95,8 @@ struct A { void f(A* a) { int b = a->b(); } + +// PR5122 +void *foo = 0; +void * const & kFoo = foo; + |

