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'.*" } */
}