Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
explicit9.C
blob: 4afaafa26687677354d4c8f6c708de0064b2e5fc [
file
] [
log
] [
blame
]
// PR c++/65598
// { dg-do compile { target c++11 } }
struct
ExplicitTest
{
explicit
operator
bool
()
const
;
};
explicit
ExplicitTest
::
operator
bool
()
const
// { dg-error "1:'explicit' outside class declaration" }
{
return
true
;
}