Testing MSVC bugs

This commit is contained in:
Andrzej Krzemienski committed 2014-09-05 16:15:39 +02:00
1 parent eef3bfe079
commit bda2001935
2 files changed
+30

No files matched your search

@@ -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();
}
@@ -0,0 +1,14 @@
struct A
{
A(int) {}
};
struct B
{
operator int() { return 0; }
};
int main()
{
A t = B();
}