(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.target/
s390/
pr100281-2.C
// 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'.*" } */
}