Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "tests.h"
0003 #include "c++/clang-c.h"
0004 #include <linux/kernel.h>
0005 
0006 #ifndef HAVE_LIBCLANGLLVM_SUPPORT
0007 static int test__clang_to_IR(struct test_suite *test __maybe_unused,
0008                  int subtest __maybe_unused)
0009 {
0010     return TEST_SKIP;
0011 }
0012 
0013 static int test__clang_to_obj(struct test_suite *test __maybe_unused,
0014                   int subtest __maybe_unused)
0015 {
0016     return TEST_SKIP;
0017 }
0018 #endif
0019 
0020 static struct test_case clang_tests[] = {
0021     TEST_CASE_REASON("builtin clang compile C source to IR", clang_to_IR,
0022              "not compiled in"),
0023     TEST_CASE_REASON("builtin clang compile C source to ELF object",
0024              clang_to_obj,
0025              "not compiled in"),
0026     { .name = NULL, }
0027 };
0028 
0029 struct test_suite suite__clang = {
0030     .desc = "builtin clang support",
0031     .test_cases = clang_tests,
0032 };