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