| * Copyright (c) 2018 Google LLC. |
| * SPDX-License-Identifier: Apache-2.0 |
| * This is mainly a parse test that verifies that Zephyr header files |
| #include <zephyr/types.h> |
| #include <misc/byteorder.h> |
| #include <usb/usb_device.h> |
| #include <usb/class/usb_hid.h> |
| /* Check that BUILD_ASSERT compiles. */ |
| BUILD_ASSERT(sizeof(foo) == sizeof(int)); |
| static struct foo foos[5]; |
| /* Check that ARRAY_SIZE compiles. */ |
| BUILD_ASSERT_MSG(ARRAY_SIZE(foos) == 5, "expected 5 elements"); |
| /* Check that SYS_INIT() compiles. */ |
| static int test_init(struct device *dev) |
| SYS_INIT(test_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY); |
| /* Does nothing. This is a compile only test. */ |