xref: /xnu-11417.121.6/tests/sched/headers_compat_cpp.cpp (revision a1e26a70f38d1d7daa7b49b258e2f8538ad81650)
1*a1e26a70SApple OSS Distributions // Copyright (c) 2024 Apple Inc.  All rights reserved.
2*a1e26a70SApple OSS Distributions 
3*a1e26a70SApple OSS Distributions #include <darwintest.h>
4*a1e26a70SApple OSS Distributions #include <sys/sysctl.h>
5*a1e26a70SApple OSS Distributions #include <unistd.h>
6*a1e26a70SApple OSS Distributions 
7*a1e26a70SApple OSS Distributions #include "exported_headers.h"
8*a1e26a70SApple OSS Distributions 
9*a1e26a70SApple OSS Distributions T_GLOBAL_META(T_META_NAMESPACE("xnu.scheduler"),
10*a1e26a70SApple OSS Distributions     T_META_RADAR_COMPONENT_NAME("xnu"),
11*a1e26a70SApple OSS Distributions     T_META_RADAR_COMPONENT_VERSION("scheduler"));
12*a1e26a70SApple OSS Distributions 
13*a1e26a70SApple OSS Distributions T_DECL(headers_compat_cpp,
14*a1e26a70SApple OSS Distributions     "Verify that scheduler headers are compatible with C++",
15*a1e26a70SApple OSS Distributions     T_META_ENABLED(false)    // Test is at build time.
16*a1e26a70SApple OSS Distributions     ) {
17*a1e26a70SApple OSS Distributions 	// If we're here, it compiled!
18*a1e26a70SApple OSS Distributions 	T_PASS("Great news: it compiles.");
19*a1e26a70SApple OSS Distributions 
20*a1e26a70SApple OSS Distributions 	T_END;
21*a1e26a70SApple OSS Distributions }
22