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

[tests] test case for bug in handling array initialization from string

parent 0c813cc2
No related branches found
No related tags found
No related merge requests found
char* ptr = "A" "B";
char* ptr2 = ("A" "B");
char a[] = "A" "B";
char b[] = ("A" "B");
char c[] = "ABC";
char d[] = ("ABC");
[kernel] Parsing init_array_string.i (no preprocessing)
/* Generated by Frama-C */
char *ptr = (char *)"AB";
char *ptr2 = (char *)"AB";
char a[3] = {(char)'A', (char)'B', (char)'\000'};
char b[3] = {(char)'A', (char)'B', (char)'\000'};
char c[4] = {(char)'A', (char)'B', (char)'C', (char)'\000'};
char d[4] = {(char)'A', (char)'B', (char)'C', (char)'\000'};
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