mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-15 07:06:05 +00:00
6ead1d4caf
These are currently only run by the new DOIT3 test-running script. Note that these tests are designed to be applicable to most implementations of C95/C99/C11, not just ORCA/C. They do make certain assumptions not guaranteed by the standards (e.g. power of 2 types and some properties of IEEE-like FP), but in general those assumptions should be true for most 'normal' systems.
22 lines
357 B
C
22 lines
357 B
C
/*
|
|
* Test quick_exit and at_quick_exit (C11).
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void f1(void) {
|
|
printf ("Passed Conformance Test c11quickex\n");
|
|
fflush(stdout);
|
|
}
|
|
|
|
void f2(void) {
|
|
printf ("Failed Conformance Test c11quickex\n");
|
|
}
|
|
|
|
int main(void) {
|
|
atexit(f2);
|
|
at_quick_exit(f1);
|
|
quick_exit(0);
|
|
}
|