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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing6.C
blob
989d277cd00107c99c7d815a9322c76f6b30ea12
1
// PR c++/57891
2
// { dg-do compile { target c++11 } }
3
4
template<unsigned int> struct A {};
5
A<-1> a; // { dg-error "narrowing conversion" }
6
7
template<signed char> struct B {};
8
B<1000> b; // { dg-error "narrowing conversion" }