diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-11 02:42:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-11 02:42:07 +0000 |
commit | 03981014e4f0c3b4e935872dda96a28c2f1874ea (patch) | |
tree | 98eeb16d651eae55f031af62afba82b528c58840 /test/CodeGenCXX/reference-init.cpp | |
parent | d7533ec10b618d360eb8952e62edb5657199acd3 (diff) |
Fix a recent regression from the initialization changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/reference-init.cpp')
-rw-r--r-- | test/CodeGenCXX/reference-init.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/reference-init.cpp b/test/CodeGenCXX/reference-init.cpp new file mode 100644 index 0000000000..9baad94a96 --- /dev/null +++ b/test/CodeGenCXX/reference-init.cpp @@ -0,0 +1,9 @@ +// RUN: clang-cc -emit-llvm-only -verify %s + +struct XPTParamDescriptor {}; +struct nsXPTParamInfo { + nsXPTParamInfo(const XPTParamDescriptor& desc); +}; +void a(XPTParamDescriptor *params) { + const nsXPTParamInfo& paramInfo = params[0]; +} |