Skip to content
Snippets Groups Projects
Commit f26f2622 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

check non-interference of __anonCompField1 with anonymous field

parent 1c9fcfd3
No related branches found
No related tags found
No related merge requests found
[kernel] Parsing tests/syntax/rename.i (no preprocessing)
[kernel] tests/syntax/rename.i:48: Warning:
unnamed fields are a C11 extension (use -c11 to avoid this warning)
/* Generated by Frama-C */
struct not_anon {
int __anonCompField1 ;
};
struct __anonstruct_1 {
int inner_i ;
};
struct anon {
struct __anonstruct_1 __anonCompField1 ;
};
int f(void)
{
int x = 0;
......@@ -66,4 +74,5 @@ void f4(int *j_0_1)
}
struct not_anon s = {.__anonCompField1 = 0};
struct anon a = {.__anonCompField1 = {.inner_i = 0}};
......@@ -44,3 +44,9 @@ struct not_anon {
};
struct not_anon s = {.__anonCompField1 = 0};
struct anon {
struct { int inner_i; };
};
struct anon a = { .inner_i = 0 };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment