diff --git a/test/CFrontend/2002-02-18-StaticData.c b/test/CFrontend/2002-02-18-StaticData.c new file mode 100644 index 00000000000..78614a71fae --- /dev/null +++ b/test/CFrontend/2002-02-18-StaticData.c @@ -0,0 +1,11 @@ + +double FOO = 17; +double BAR = 12.0; +float XX = 12.0f; + +static char *procnames[] = { + "EXIT" +}; + +void *Data[] = { &FOO, &BAR, &XX }; + diff --git a/test/CFrontend/2002-04-09-StructRetVal.c b/test/CFrontend/2002-04-09-StructRetVal.c new file mode 100644 index 00000000000..8ba8bfa4d5d --- /dev/null +++ b/test/CFrontend/2002-04-09-StructRetVal.c @@ -0,0 +1,10 @@ +struct S { + int i; + short s1, s2; +}; + +struct S func_returning_struct(void); + +void loop(void) { + func_returning_struct(); +} diff --git a/test/CFrontend/2002-05-24-Alloca.c b/test/CFrontend/2002-05-24-Alloca.c new file mode 100644 index 00000000000..698452e574a --- /dev/null +++ b/test/CFrontend/2002-05-24-Alloca.c @@ -0,0 +1,9 @@ +#include +#include +#include + +int main(int argc, char **argv) { + char *C = (char*)alloca(argc); + strcpy(C, argv[0]); + puts(C); +}