Searched refs:ASSERT (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dc90-array-lval-4.c14 #define ASSERT(v, a) char v[((a) ? 1 : -1)] macro
16 ASSERT (p, sizeof (x.c) == 17);
17 ASSERT (q, sizeof (0, x.c) == sizeof (char *));
18 ASSERT (r0, sizeof ((d ? b : c).c) == 17);
19 ASSERT (r1, sizeof ((d, b).c) == 17);
20 ASSERT (r2, sizeof ((a = b).c) == 17);
24 ASSERT (s0, sizeof (0, (d ? b : c).c) == 17); /* { dg-bogus "array" "bad non-lvalue array handling" } */
25 ASSERT (s0, sizeof (0, (d, b).c) == 17); /* { dg-bogus "array" "bad non-lvalue array handling" } */
26 ASSERT (s0, sizeof (0, (a = b).c) == 17); /* { dg-bogus "array" "bad non-lvalue array handling" } */
H A Dc99-array-lval-4.c14 #define ASSERT(v, a) char v[((a) ? 1 : -1)] macro
16 ASSERT (p, sizeof (x.c) == 17);
17 ASSERT (q, sizeof (0, x.c) == sizeof (char *));
18 ASSERT (r0, sizeof ((d ? b : c).c) == 17);
19 ASSERT (r1, sizeof ((d, b).c) == 17);
20 ASSERT (r2, sizeof ((a = b).c) == 17);
22 ASSERT (s0, sizeof (0, (d ? b : c).c) == sizeof (char *)); /* { dg-bogus "array" "bad non-lvalue array handling" } */
23 ASSERT (s0, sizeof (0, (d, b).c) == sizeof (char *)); /* { dg-bogus "array" "bad non-lvalue array handling" } */
24 ASSERT (s0, sizeof (0, (a = b).c) == sizeof (char *)); /* { dg-bogus "array" "bad non-lvalue array handling" } */
H A Dc90-array-lval-2.c12 #define ASSERT(v, a) char v[((a) ? 1 : -1)] macro
14 ASSERT (p, sizeof (x.c) == 17);
15 ASSERT (q, sizeof (0, x.c) == sizeof (char *));
16 ASSERT (r, sizeof ((foo ()).c) == 17);
20 ASSERT (s, sizeof (0, (foo ()).c) == 17); /* { dg-bogus "array" "bad non-lvalue array handling" } */
H A Dc99-array-lval-2.c12 #define ASSERT(v, a) char v[((a) ? 1 : -1)] macro
14 ASSERT (p, sizeof (x.c) == 17);
15 ASSERT (q, sizeof (0, x.c) == sizeof (char *));
16 ASSERT (r, sizeof ((foo ()).c) == 17);
18 ASSERT (s, sizeof (0, (foo ()).c) == sizeof (char *)); /* { dg-bogus "array" "bad non-lvalue array handling" } */
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Deeprof-1.c1 #define ASSERT(X) if (!(X)) abort (); macro
12 ASSERT (last_fn_entered == foo);
17 ASSERT (entry_calls == 1 && exit_calls == 0);
18 ASSERT (last_fn_entered == foo2);
20 ASSERT (entry_calls == 2 && exit_calls == 1);
21 ASSERT (last_fn_entered == foo);
22 ASSERT (last_fn_exited == foo);
28 ASSERT (entry_calls == 2 && exit_calls == 2);
29 ASSERT (last_fn_entered == foo);
30 ASSERT (last_fn_exite
[all...]
/openbsd-current/regress/lib/libpthread/system/
H A Dsystem.c17 ASSERT(system("ls") == 0);
/openbsd-current/regress/lib/libcrypto/utf8/
H A Dutf8test.c31 #define ASSERT(x) \ macro
52 ASSERT(ret == 0);
53 ASSERT(value == UNCHANGED);
59 ASSERT(ret == 1);
60 ASSERT(value == i);
63 ASSERT(ret == 1);
64 ASSERT(value == i);
78 ASSERT(ret == -2);
79 ASSERT(value == UNCHANGED);
85 ASSERT(re
[all...]
/openbsd-current/regress/lib/libpthread/errno/
H A Derrno.c37 ASSERT(state == new_state - 1);
60 ASSERT(signal == SIGUSR1);
63 ASSERT(&errno == main_errno);
65 ASSERT(pthread_equal(t1_tid, pthread_self()));
68 ASSERT(&errno == t1_errno);
70 ASSERT(pthread_equal(t1_tid, pthread_self()));
74 ASSERT(&errno == t2_errno);
76 ASSERT(pthread_equal(t2_tid, pthread_self()));
86 ASSERT(t1_errno != main_errno);
87 ASSERT(*t1_errn
[all...]
/openbsd-current/regress/lib/libpthread/pthread_atfork/
H A Dpthread_atfork.c18 ASSERT(cnt == 1);
25 ASSERT(cnt == 2);
32 ASSERT(cnt == 0);
39 ASSERT(cnt == 2);
46 ASSERT(cnt == 0);
53 ASSERT(cnt == 3);
69 ASSERT(cnt == 3);
73 ASSERT(cnt == 2);
94 ASSERT(cnt == 4);
98 ASSERT(cn
[all...]
/openbsd-current/usr.sbin/npppd/common/
H A Ddebugmacro.h36 #ifndef ASSERT
38 #define ASSERT(x) \ macro
46 #define ASSERT(x) ((void)0); macro
H A Dslist_test.c46 #define ASSERT(x) \ macro
92 ASSERT(sl.list_size == 256);
110 ASSERT((int)slist_get(l, i) == i + f);
119 ASSERT((int)slist_get(l, i) == i);
127 ASSERT((int)slist_get(l, i) == i);
130 ASSERT((int)slist_get(l, slist_length(l) - 1) == 127);
134 ASSERT(slist_length(l) == 0);
156 ASSERT((int)slist_get(&sl, 127) == 255);
157 ASSERT((int)slist_get(&sl, 254) == 129 + 253);
158 ASSERT((in
[all...]
/openbsd-current/regress/lib/libpthread/signals/ignore_sigchild/
H A Dignore_sigchild.c17 ASSERT(signal(SIGCHLD, SIG_IGN) != SIG_ERR);
30 ASSERT(wait(&status) == -1);
31 ASSERT(errno == ECHILD);
/openbsd-current/regress/lib/libpthread/cancel_wait/
H A Dcancel_wait.c72 ASSERT(ret == PTHREAD_CANCELED);
73 ASSERT(status == 42);
80 ASSERT(ret == PTHREAD_CANCELED);
81 ASSERT(status == 42);
88 ASSERT(ret == PTHREAD_CANCELED);
89 ASSERT(status == 42);
96 ASSERT(ret == PTHREAD_CANCELED);
97 ASSERT(status == 42);
104 ASSERT(ret == NULL);
105 ASSERT(WIFSIGNALE
[all...]
/openbsd-current/regress/lib/libpthread/semaphore/sem_getvalue/
H A Dsem_getvalue.c19 ASSERT(val == 0);
23 ASSERT(val == 1);
/openbsd-current/regress/lib/libpthread/cwd/
H A Dcwd.c51 ASSERT(path = getcwd(wd, sizeof wd));
53 ASSERT(path = getwd(wd));
/openbsd-current/regress/lib/libpthread/stack/
H A Dstack.c52 ASSERT((char *)&s >= s->addr && (char *)&s - s->addr < s->size);
73 ASSERT(size != 1); /* must have changed */
74 ASSERT(size != 0); /* we default to having a guardpage */
78 ASSERT(size >= PTHREAD_STACK_MIN);
82 ASSERT(addr == NULL); /* default must be NULL */
87 ASSERT(addr2 == addr); /* must match the other calls */
88 ASSERT(size2 == size);
92 ASSERT(err == EINVAL);
94 ASSERT(size2 == size);
114 ASSERT(add
[all...]
/openbsd-current/regress/lib/libpthread/semaphore/sem_wait/
H A Dsem_wait.c35 ASSERT(errno == EINVAL);
45 ASSERT(errno == EBUSY);
86 ASSERT(value == 0);
87 ASSERT(posted != 0);
89 ASSERT(r == -1);
90 ASSERT(errno == EINTR);
91 ASSERT(eintr_ok);
93 ASSERT(value == 1);
95 ASSERT(value == 0);
/openbsd-current/regress/lib/libpthread/semaphore/sem_trywait/
H A Dsem_trywait.c19 ASSERT(errno == EINVAL);
24 ASSERT(errno == EAGAIN);
30 ASSERT(val == 0);
/openbsd-current/regress/lib/libpthread/siginterrupt/
H A Dsiginterrupt.c25 ASSERT(read(fds[0], &buf, 1) == -1);
35 ASSERT(signal(SIGUSR1, handler) != SIG_ERR);
55 ASSERT(retval == (void *)EINTR);
56 ASSERT(hits == 3);
/openbsd-current/regress/lib/libpthread/restart/connect/
H A Dconnect.c39 ASSERT(connect(s, (struct sockaddr *)&sa, sizeof(sa)) == -1);
41 ASSERT(connect(s, (struct sockaddr *)&sa, sizeof(sa)) == -1);
42 ASSERT(errno == EALREADY);
66 ASSERT(retval == (void *)EINTR);
67 ASSERT(hits == 1);
/openbsd-current/regress/lib/libpthread/signodefer/
H A Dsignodefer.c28 ASSERT(siginfo != NULL);
50 ASSERT(sigaction(SIGUSR1, &act, NULL) == 0);
55 ASSERT(was_active == 0);
59 ASSERT(sigaction(SIGUSR1, &act, NULL) == 0);
64 ASSERT(was_active == 1);
/openbsd-current/regress/lib/libpthread/malloc_duel/
H A Dmalloc_duel.c37 ASSERT(a != NULL);
41 ASSERT(a[i] != NULL);
68 ASSERT(signal(SIGALRM, alarm_handler) != SIG_ERR);
/openbsd-current/regress/lib/libpthread/semaphore/sem_timedwait/
H A Dsem_timedwait.c44 ASSERT(errno == EINVAL);
54 ASSERT(errno == EBUSY);
83 ASSERT(errno == ETIMEDOUT);
90 ASSERT(timespeccmp(&ts, &ts2, <=));
103 ASSERT(timespeccmp(&ts2, &ts, <=));
123 ASSERT(value == 0);
124 ASSERT(posted != 0);
126 ASSERT(r == -1);
127 ASSERT(errno == EINTR);
128 ASSERT(eintr_o
[all...]
/openbsd-current/regress/lib/libpthread/process_kill/
H A Dprocess_kill.c37 ASSERT(signal(SIGALRM, deadlock) != SIG_ERR);
38 ASSERT(signal(SIGUSR1, handler) != SIG_ERR);
/openbsd-current/regress/lib/libpthread/pthread_once/
H A Dpthread_once.c42 ASSERT(!done);
46 ASSERT(done);

Completed in 218 milliseconds

1234567891011>>