ref: 9653030c822fa1a34b30b1e29fd1c7f4a545b7fc
dir: /cc1/tests/test014.c/
/*
name: TEST014
description: Basic storage class test
error:
test014.c:15: warning: 'a' defined but not used
test014.c:15: warning: 'k' defined but not used
test014.c:15: warning: 'j' defined but not used
test014.c:15: warning: 'i' defined but not used
test014.c:15: warning: 'h' defined but not used
test014.c:21: warning: 'par' defined but not used
test014.c:21: warning: 'par' defined but not used
test014.c:26: warning: 'par' defined but not used
test014.c:28: error: incorrect storage class for file-scope declaration
test014.c:28: error: invalid storage class for function 'd'
test014.c:31: error: bad storage class in function parameter
test014.c:32: error: invalid storage class for function 'func4'
test014.c:33: error: invalid type specification
test014.c:34: warning: 'f' defined but not used
test014.c:34: warning: 'par' defined but not used
test014.c:37: error: conflicting types for 'd'
output:
G1 I "a
Y2 K "b
X3 I "c
G6 F "func1
{
\
A7 I "h
T8 K "i
R9 W "j
X10 I "k
T11 Z "a
h #I0
}
G14 F "func2
{
R12 I "par
\
A15 I "par
}
T17 F "func3
{
R16 I "par
\
}
*/
#line 1
int a;
static char b;
extern int c;
typedef unsigned e;
int
func1(void)
{
auto h;
static char i;
register long j;
extern int k;
static unsigned long a;
return 0;
}
void
func2(register int par)
{
int par;
}
static void
func3(register int par)
{
}
register short d;
register void
func4(static int par)
{
static register f;
}
short d;
char d;