Hi Jan,

On 14/01/2019 16:44, Jan Beulich wrote:

extern struct my_struct __start[];
extern struct my_struct __end[];

void test(const struct my_struct *);

void foo(int i) {
        test(i ? __start : __end);
}

Your example doesn't contain any potential undefined behavior. So, how this relevant with our discussion here?

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to