Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr34448.c
blob988465efe742dbd3710030b89551df01249bf1da
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
4 typedef struct chunk_t chunk_t;
5 struct chunk_t
7 unsigned char *ptr;
8 long unsigned int len;
9 };
10 extern chunk_t asn1_wrap (chunk_t c, ...);
11 typedef struct linked_list_t linked_list_t;
12 chunk_t ietfAttr_list_encode (linked_list_t * list);
13 extern linked_list_t *groups;
14 static unsigned char ASN1_group_oid_str[] = {
15 0x06
17 static const chunk_t ASN1_group_oid = {
18 ASN1_group_oid_str, sizeof (ASN1_group_oid_str)
20 static chunk_t
21 build_attribute_type (const chunk_t type, chunk_t content)
23 return type;
25 static chunk_t
26 build_attributes (void)
28 return asn1_wrap (build_attribute_type (ASN1_group_oid,
29 ietfAttr_list_encode (groups)));
31 void build_attr_cert (void)
33 asn1_wrap (build_attributes ());