Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

28 lines
340 B
C

#include <stdlib.h>
struct s {
int a;
int b;
};
int main()
{
int a[10];
for (int i = 0; i < 10; ++i)
a[i] = 0;
#pragma scop
for (int i = 0; i < 10; ++i) {
struct s b;
b.a = 1;
b.b = i;
a[i] = b.a + b.b;
}
#pragma endscop
for (int i = 0; i < 10; ++i)
if (a[i] != 1 + i)
return EXIT_FAILURE;
return EXIT_SUCCESS;
}