From 03981014e4f0c3b4e935872dda96a28c2f1874ea Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 11 Dec 2009 02:42:07 +0000 Subject: 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 --- test/CodeGenCXX/reference-init.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGenCXX/reference-init.cpp (limited to 'test/CodeGenCXX/reference-init.cpp') 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]; +} -- cgit v1.2.3-70-g09d2