rusi/test/typeof.c

15 lines
582 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#включить "тест.з"
#включить "stdvv.c"
#include "common.c"
цел главн() {
ПРОВЕРИТЬ(3, ({ типоф(цел) х=3; х; }));
ПРОВЕРИТЬ(3, ({ типоф(1) х=3; х; }));
ПРОВЕРИТЬ(4, ({ цел х; типоф(х) у; размер(у); }));
ПРОВЕРИТЬ(8, ({ цел х; типоф(&х) у; размер(у); }));
ПРОВЕРИТЬ(4, ({ типоф("foo") х; размер(х); }));
ПРОВЕРИТЬ(12, размер(типоф(структ { цел а, б, в; })));
printf("OK\n");
возврат 0;
}