blob: 1f267ea78c4b54192f2d203ee1bf71ff5ba24297 [file] [log] [blame]
/* Check operator with __attribute__((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
struct Foo
{
operator int() __attribute__((unavailable));
};
void g(void)
{
Foo f;
(int)f; // { dg-error "'Foo::operator int\\(\\)' is unavailable" }
}