mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Check in testcases that were just in my tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e1635e895
commit
3b1778bccf
11
test/CFrontend/2002-02-18-StaticData.c
Normal file
11
test/CFrontend/2002-02-18-StaticData.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
double FOO = 17;
|
||||||
|
double BAR = 12.0;
|
||||||
|
float XX = 12.0f;
|
||||||
|
|
||||||
|
static char *procnames[] = {
|
||||||
|
"EXIT"
|
||||||
|
};
|
||||||
|
|
||||||
|
void *Data[] = { &FOO, &BAR, &XX };
|
||||||
|
|
10
test/CFrontend/2002-04-09-StructRetVal.c
Normal file
10
test/CFrontend/2002-04-09-StructRetVal.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
struct S {
|
||||||
|
int i;
|
||||||
|
short s1, s2;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct S func_returning_struct(void);
|
||||||
|
|
||||||
|
void loop(void) {
|
||||||
|
func_returning_struct();
|
||||||
|
}
|
9
test/CFrontend/2002-05-24-Alloca.c
Normal file
9
test/CFrontend/2002-05-24-Alloca.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
char *C = (char*)alloca(argc);
|
||||||
|
strcpy(C, argv[0]);
|
||||||
|
puts(C);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user