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