repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing5.C
blob
d2abf03313e59d60e3cd8a0290eca5b89d6dc9d6
1
// PR c++/85045
2
// { dg-do compile { target c++11 } }
3
4
typedef struct tt {
5
unsigned short h;
6
} tt;
7
8
void mainScreen(float a)
9
{
10
tt numlrect = {int(100/a)}; // { dg-error "narrowing conversion" }
11
}