aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/expand/cost-deref-nested.c
blob: d6b623961378df1c77b7f7c53ecf198cf41ed6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct s {
	struct {
		int u, v;
	} a, b;
};

static const struct s s;

static int foo(int c)
{
	return c && s.b.v;
}

/*
 * check-name: cost-deref-nested
 * check-command: test-linearize -fdump-ir $file
 *
 * check-output-ignore
 * check-output-excludes: cbr
 */