Debian Codegraph @

gcc/testsuite/g++.dg/ext/typeof13.C

raw
1 // PR c++/84701
2 // { dg-options "-pedantic" }
3
4 typedef short foo_t;
5 foo_t s = -1; /* FFFF */
6
7 unsigned u = (unsigned foo_t)s; // { dg-warning foo_t }
8 unsigned u2 = (unsigned __typeof(s))s; // { dg-error typeof }