Update test
This commit is contained in:
1 parent
6c222b9ad7
commit
ac3d7568f2
2 files changed
+29
-1
No files matched your search
+1
-1
@@ -83,7 +83,7 @@ checkfail: fail-no-oplist
|
|||||||
|
|
||||||
# TODO: should grep failure message?
|
# TODO: should grep failure message?
|
||||||
fail-no-oplist:
|
fail-no-oplist:
|
||||||
for i in 1 2 3 4 5 6 ; do \
|
for i in 1 2 3 4 5 6 7 8 9 ; do \
|
||||||
if $(CC) $(CFLAGS) $(CPPFLAGS) -g -c fail-no-oplist.c -o tmp.o -DTEST=$$i 2> fail-no-oplist-$$i.log ; then echo FAILURE: fail-no-oplist-$$i ; false; else echo OK: fail-no-oplist-$$i ; fi \
|
if $(CC) $(CFLAGS) $(CPPFLAGS) -g -c fail-no-oplist.c -o tmp.o -DTEST=$$i 2> fail-no-oplist-$$i.log ; then echo FAILURE: fail-no-oplist-$$i ; false; else echo OK: fail-no-oplist-$$i ; fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,34 @@ typedef struct tmp_str_s {
|
|||||||
} tmp_str_t;
|
} tmp_str_t;
|
||||||
ILIST_DEF(tmpstr, tmp_str_t, DEFAULT_OPLIST)
|
ILIST_DEF(tmpstr, tmp_str_t, DEFAULT_OPLIST)
|
||||||
|
|
||||||
|
#elif TEST == 7
|
||||||
|
|
||||||
|
#include "m-string.h"
|
||||||
|
void f(void)
|
||||||
|
{
|
||||||
|
M_LET(x, M_STRING_OPLIST) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif TEST == 8
|
||||||
|
|
||||||
|
#include "m-string.h"
|
||||||
|
typedef string_t my_type;
|
||||||
|
#define M_OPL_my_type() MSTRING_OPLIST
|
||||||
|
void f(void)
|
||||||
|
{
|
||||||
|
M_LET(x, my_type) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif TEST == 9
|
||||||
|
|
||||||
|
void f(void)
|
||||||
|
{
|
||||||
|
M_LET(x, () ) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# warning TEST variable is out of range.
|
# warning TEST variable is out of range.
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user