summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/bz10078.c
blob: 9075fbc7f4bb7b5cfcc6b74a7df3f103d327c754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdlib.h>
#include <stdio.h>

struct point { int x, y; };

struct point mkpoint2(void)
{
	struct point p = { 1, 2 };
	return p;
}

struct point mkpoint1(void)
{
	return mkpoint2();
}

main()
{
	struct point p = mkpoint1();
	printf("%d,%d\n", p.x, p.y);
	exit(0);
}