summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug3029630.c
blob: 632c3a619c5dced34e5fbb5210e7f929e8d76c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
   bug3029630.c
 */

#include <testfwk.h>

struct a
{
	void *a;
} s;

/* should not give 
   warning 196: pointer target lost const qualifier */
void foo(const struct a *x)
{
	void *const y = x->a;
	(void)y;
}

void testBug(void)
{
	foo(&s);
}