This commit is contained in:
Alkis Evlogimenos 2024-06-07 23:52:07 +02:00
parent 5e0de0d75d
commit 43c05503d2

View file

@ -26,6 +26,8 @@
// #include <string>
// #define ctl std
static int g = 0;
int
main()
{
@ -114,6 +116,13 @@ main()
return 24;
}
{
struct A { int* p = &g; A() {++*p; } };
ctl::optional<A> x;
if (g != 0)
return 25;
}
CheckForMemoryLeaks();
return 0;
}