diff options
Diffstat (limited to 'tests/test_header_c11.c')
| -rw-r--r-- | tests/test_header_c11.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_header_c11.c b/tests/test_header_c11.c new file mode 100644 index 0000000..515a914 --- /dev/null +++ b/tests/test_header_c11.c @@ -0,0 +1,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; +} |
