File: nested-declarator.c

package info (click to toggle)
sparse 0.6.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,868 kB
  • sloc: ansic: 46,050; sh: 614; python: 301; perl: 293; makefile: 279
file content (29 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
typedef int T;
extern void f(int);
static void g(int x)
{
	int (T);
	T = x;
	f(T);
}
static void h(void)
{
	static int [2](T)[3];
}
static int [2](*p)[3];
int i(void (void)(*f));
int j(int [2](*));
/*
 * check-name: nested declarator vs. parameters
 * check-error-start
nested-declarator.c:11:23: warning: missing identifier in declaration
nested-declarator.c:11:23: error: Expected ; at the end of type declaration
nested-declarator.c:11:23: error: got (
nested-declarator.c:13:15: error: Expected ; at the end of type declaration
nested-declarator.c:13:15: error: got (
nested-declarator.c:14:18: error: Expected ) in function declarator
nested-declarator.c:14:18: error: got (
nested-declarator.c:15:14: error: Expected ) in function declarator
nested-declarator.c:15:14: error: got (
 * check-error-end
 */