bar.cxx 599 B

123456789101112131415161718192021222324
  1. #include <noregen.h>
  2. #include <regen.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. int main(int argc, char** argv)
  6. {
  7. /* Make sure the noregen header was not regenerated. */
  8. if (strcmp("foo", noregen_string) != 0) {
  9. #ifdef XCODE_NEW_BUILD_SYSTEM
  10. fprintf(stderr,
  11. "Known limitation: noregen.h was regenerated "
  12. "but we cannot stop Xcode from doing this!\n");
  13. #else
  14. printf("FAILED: noregen.h was regenerated!\n");
  15. return 1;
  16. #endif
  17. }
  18. /* Print out the string that should have been regenerated. */
  19. printf("%s\n", regen_string);
  20. fflush(stdout);
  21. return 0;
  22. }