llvm-project/clang/test/CodeGenCXX/reference-init.cpp

10 lines
240 B
C++

// RUN: %clang_cc1 -emit-llvm-only -verify %s
struct XPTParamDescriptor {};
struct nsXPTParamInfo {
nsXPTParamInfo(const XPTParamDescriptor& desc);
};
void a(XPTParamDescriptor *params) {
const nsXPTParamInfo& paramInfo = params[0];
}