bar.cxx 417 B

123456789101112131415161718
  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. printf("FAILED: noregen.h was regenerated!\n");
  10. return 1;
  11. }
  12. /* Print out the string that should have been regenerated. */
  13. printf("%s\n", regen_string);
  14. fflush(stdout);
  15. return 0;
  16. }