Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.target
/
s390
/
pr100281-2.C
blob: 58552becd7ceb14ee3b43c5d05110af376e5633c [
file
] [
log
] [
blame
]
// PR C++/100281
// { dg-do compile }
typedef
int
&
__attribute__
((
mode
(
SI
)))
__ref32_t
;
void
foo
()
{
unsigned
int
b
=
100
;
__ref32_t
a
=
b
;
/* { dg-error "cannot bind non-const lvalue reference of type '__ref32_t'.*" } */
}