bar.cxx 412 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <regen.h>
  4. #include <noregen.h>
  5. int main()
  6. {
  7. /* Make sure the noregen header was not regenerated. */
  8. if(strcmp("foo", noregen_string) != 0)
  9. {
  10. printf("FAILED: noregen.h was regenerated!\n");
  11. return 1;
  12. }
  13. /* Print out the string that should have been regenerated. */
  14. printf("%s\n", regen_string);
  15. fflush(stdout);
  16. for(;;);
  17. return 0;
  18. }