1// RUN: %clang_cc1 -emit-llvm-only -verify %s 2 3struct XPTParamDescriptor {}; 4struct nsXPTParamInfo { 5 nsXPTParamInfo(const XPTParamDescriptor& desc); 6}; 7void a(XPTParamDescriptor *params) { 8 const nsXPTParamInfo& paramInfo = params[0]; 9} 10 11// CodeGen of reference initialized const arrays. 12namespace PR5911 { 13 template <typename T, int N> int f(const T (&a)[N]) { return N; } 14 int iarr[] = { 1 }; 15 int test() { return f(iarr); } 16} 17 18// radar 7574896 19struct Foo { int foo; }; 20Foo& ignoreSetMutex = *(new Foo); 21 22// Binding to a bit-field that requires a temporary. 23struct { int bitfield : 3; } s = { 3 }; 24const int &s2 = s.bitfield; 25