Debian Codegraph @

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

raw
1 // PR C++/100281
2 // { dg-do compile }
3
4 typedef void * __attribute__((mode (SI))) __ptr32_t;
5
6 void foo () {
7 unsigned int b = 100;
8 __ptr32_t a;
9 a = b; /* { dg-error "invalid conversion from 'unsigned int' to '__ptr32_t'.*" } */
10 }