Edit

kc3-lang/libbsd/test/overlay.c

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2012-03-24 20:37:55
    Hash : 786d1439
    Message : test: Add new overlay unit test

  • test/overlay.c
  • /* Include system headers that are “known” to pull bits selectively from
     * other headers through magic macros, to check that the overlay is working
     * properly. */
    #include <errno.h>
    #include <grp.h>
    #include <stdint.h>
    
    /* Include libbsd overlayed headers that might get partially included. */
    #include <sys/cdefs.h>
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    
    int
    main()
    {
    	/* Test that we do not get partial definitions. */
    	fflush(stdout);
    
    	return 0;
    }