summaryrefslogtreecommitdiff
path: root/tests/test_header_c11.c
blob: 515a9148e81d62b715885294f633c1d69383e94f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Built as strict C11 and C17 with -pedantic-errors: the public header must not need newer C. */
#include <yasl/yasl.h>
#include <assert.h>

int main(void)
{
    enum yasl_backend backend = YASL_BACKEND_AUTO;
    struct yasl_surface_options options = {.title = "portable", .width = 64, .height = 64};
    assert(backend == 0 && options.type == YASL_SURFACE_CPU && YASL_VERSION_MAJOR == 0);
    return 0;
}