summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1670148.c
blob: 80f1442ae668e0466c7421f84c40ef43c28723c6 (plain) (blame)
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
30
31
32
/*
    bug 1670148.c
*/

#include <testfwk.h>

// no need to call this, it generates compiler error for xstack-auto
//   error 9: FATAL Compiler Internal Error
struct str {
  long  aa;
  long  bb;
};

struct str *v1;

void foo(void)
{
	struct str v2;
	struct str loc;

	v2.aa = 0;
	loc.bb  =  v1->bb;
	loc.aa  =  v1->aa - v2.aa;

	loc.bb += 0;
}

void
testBug(void)
{
	ASSERT(1);
}