Testing MSVC bugs

This commit is contained in:
Andrzej Krzemienski
2014-09-05 16:15:39 +02:00
parent eef3bfe079
commit bda2001935
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,16 @@
struct A
{
A(int) {}
A(A &&) {}
};
struct B
{
operator A() { return A(1); }
operator int() { return 0; }
};
int main()
{
A t = B();
}

View File

@ -0,0 +1,14 @@
struct A
{
A(int) {}
};
struct B
{
operator int() { return 0; }
};
int main()
{
A t = B();
}