Debian Codegraph @

Tests/BuildDepends/Project/bar.cxx

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