/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #define CHAZ_USE_SHORT_NAMES #include "charmony.h" #include #include "Charmonizer/Test.h" #ifdef HAS_ASSERT_H #include #endif #ifdef HAS_CTYPE_H #include #endif #ifdef HAS_ERRNO_H #include #endif #ifdef HAS_FLOAT_H #include #endif #ifdef HAS_LIMITS_H #include #endif #ifdef HAS_LOCALE_H #include #endif #ifdef HAS_MATH_H #include #endif #ifdef HAS_SETJMP_H #include #endif #ifdef HAS_SIGNAL_H #include #endif #ifdef HAS_STDARG_H #include #endif #ifdef HAS_STDDEF_H #include #endif #ifdef HAS_STDIO_H #include #endif #ifdef HAS_STDLIB_H #include #endif #ifdef HAS_STRING_H #include #endif #ifdef HAS_TIME_H #include #endif #ifdef HAS_CPIO_H #include #endif #ifdef HAS_DIRENT_H #include #endif #ifdef HAS_FCNTL_H #include #endif #ifdef HAS_GRP_H #include #endif #ifdef HAS_PWD_H #include #endif #ifdef HAS_SYS_STAT_H #include #endif #ifdef HAS_SYS_TIMES_H #include #endif #ifdef HAS_SYS_TYPES_H #include #endif #ifdef HAS_SYS_UTSNAME_H #include #endif #ifdef HAS_WAIT_H #include #endif #ifdef HAS_TAR_H #include #endif #ifdef HAS_TERMIOS_H #include #endif #ifdef HAS_UNISTD_H #include #endif #ifdef HAS_UTIME_H #include #endif #if defined(HAS_C89) || defined(HAS_C90) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif #ifdef HAS_POSIX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif static void S_run_tests(void) { PASS("Compiled successfully with all detected headers"); /* Don't bother checking all -- just use stdio as an example. */ #ifdef HAS_STDIO_H PASS("stdio.h should have been detected"); #else FAIL("stdio.h should have been detected"); #endif } int main(int argc, char **argv) { Test_start(2); S_run_tests(); return !Test_finish(); }