Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-cast1.C
blob: 5446d85f3aab19a26eebcfc1e4a11d669aa318d3 [
file
] [
log
] [
blame
]
// PR c++/83186
// { dg-do compile { target c++11 } }
struct
a
{
operator
unsigned
();
};
template
<class>
void
b
()
{
static_cast
<unsigned>
(
a
{});
}
int
main
()
{
b
<int>
();
}