1 // SPDX-License-Identifier: GPL-2.0
3 #include "c++/clang-c.h"
4 #include <linux/kernel.h>
6 #ifndef HAVE_LIBCLANGLLVM_SUPPORT
7 static int test__clang_to_IR(struct test_suite *test __maybe_unused,
8 int subtest __maybe_unused)
13 static int test__clang_to_obj(struct test_suite *test __maybe_unused,
14 int subtest __maybe_unused)
20 static struct test_case clang_tests[] = {
21 TEST_CASE_REASON("builtin clang compile C source to IR", clang_to_IR,
23 TEST_CASE_REASON("builtin clang compile C source to ELF object",
29 struct test_suite suite__clang = {
30 .desc = "builtin clang support",
31 .test_cases = clang_tests,