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