diff --git a/gcc/pself4.c b/gcc/pself4.c new file mode 100644 index 00000000000..02a6f7cded6 --- /dev/null +++ b/gcc/pself4.c @@ -0,0 +1,2 @@ +#include +int main(void){char*p="#include %cint main(void){char*p=%c%s%c;(void)printf(p,10,34,p,34,10);return 0;}%c";(void)printf(p,10,34,p,34,10);return 0;} diff --git a/gcc/pself5.c b/gcc/pself5.c new file mode 100644 index 00000000000..8f6f8e3b26f --- /dev/null +++ b/gcc/pself5.c @@ -0,0 +1,5 @@ +#include +#define N '\n' +#define Q '\"' +#define B '\\' +int main(void){char*p="#include %c#define N '%cn'%c#define Q '%c%c'%c#define B '%c%c'%cint main(void){char*p=%c%s%c;(void)printf(p,N,B,N,B,Q,N,B,B,N,Q,p,Q,N);return 0;}%c";(void)printf(p,N,B,N,B,Q,N,B,B,N,Q,p,Q,N);return 0;}