git-svn-id: svn://ultimatepp.org/upp/trunk@13772 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-12-19 12:10:18 +00:00
parent aa15ac998e
commit d0d553a655
3 changed files with 39 additions and 2 deletions

View file

@ -39,7 +39,7 @@ struct Val : Moveable<Val, TypeInfo> {
Val DeRef(Val val_v)
{
DDUMP(&val_v);
val_v.ref--;
val_v.ref--; // todo; DBGHELP problem here
val_v.rvalue = false;
return val_v;
}
@ -71,9 +71,22 @@ void Test3(String *ptr_s)
DDUMP(ptr_s);
DUMP(*ptr_s);
}
GUI_APP_MAIN
{
{
Vector<int> x;
for(int i = 0; i < 100000; i++)
x.Add(i);
int *h = x;
h = NULL;
}
{
Tuple<int, int *> h;
int q[] = { 1, 2, 3, 4, 5 };
h.b = q;
h.a = 123456789;
h.b = NULL;
}
{
Value a = Rectf(1, 1, 1, 1);
Value b = Rectf(1, 2, 3, 4);

View file

@ -0,0 +1,15 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
// this is just compilation check:
Semaphore s;
s.Wait(1000);
Mutex m;
ConditionVariable cv;
cv.Wait(m, 1000);
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
TimedSemaphoreCV.cpp;
mainconfig
"" = "";