Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern void abort (void);
- struct S {
- int len;
- char s[0];
- };
- int main()
- {
- char buf[sizeof (struct S) + 32];
- if (__builtin_object_size (((struct S *)&buf[0])->s, 1) != 32)
- abort ();
- return 0;
- }
Add Comment
Please, Sign In to add comment