blob: 3dc15c52acd710107f1b09176d33184346f69c36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// { dg-do run }
// { dg-options "" }
// Testcase for constructor expressions (GNU extension)
struct Any {
int *type;
int *addr;
};
int i, j;
int
main () {
struct Any *ap = (struct Any *)
__builtin_alloca (sizeof(struct Any));
*ap = ((struct Any){ &i, &j }) ;
if (ap->type != &i || ap->addr != &j)
return 1;
return 0;
}
|