Debian Codegraph @

gcc/testsuite/g++.target/s390/pr100281-2.C

raw
1 // PR C++/100281
2 // { dg-do compile }
3
4 typedef int & __attribute__((mode (SI))) __ref32_t;
5
6 void foo () {
7 unsigned int b = 100;
8 __ref32_t a = b; /* { dg-error "cannot bind non-const lvalue reference of type '__ref32_t'.*" } */
9 }