c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / Wnarrowing5.C
blobd2abf03313e59d60e3cd8a0290eca5b89d6dc9d6
1 // PR c++/85045
2 // { dg-do compile { target c++11 } }
4 typedef struct tt {
5   unsigned short h;
6 } tt;
8 void mainScreen(float a)
10   tt numlrect = {int(100/a)}; // { dg-error "narrowing conversion" }