diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-19 00:20:10 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-19 00:20:10 +0000 |
| commit | 357e8c94d66735d42f55f8eb9d8a3fd1466ada9f (patch) | |
| tree | 6a78422e710a1fec6e8a70d1bc2bbb8ad4ab16da /clang/test | |
| parent | 57f2a6187af11e4e067a546dcf7a85dff9091026 (diff) | |
| download | bcm5719-llvm-357e8c94d66735d42f55f8eb9d8a3fd1466ada9f.tar.gz bcm5719-llvm-357e8c94d66735d42f55f8eb9d8a3fd1466ada9f.zip | |
Fix for PR5524: make reference binding in default argument work correctly.
llvm-svn: 91733
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenCXX/reference-bind-default-argument.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp new file mode 100644 index 00000000000..acce962b195 --- /dev/null +++ b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 %s -emit-llvm-only -verify + +struct A {}; +struct B : A {}; +void a(const A& x = B()); +void b() { a(); } |

