1 // PERMUTE_ARGS: -fPIC -O
2 
3 extern (C) int printf(const char*, ...);
4 
5 /***************************************************/
6 
7 align(16) struct S41
8 {
9     int[4] a;
10 }
11 
12 shared int x41;
13 shared S41 s41;
14 
test11310()15 void test11310()
16 {
17     printf("&x = %p\n", &x41);
18     printf("&s = %p\n", &s41);
19     assert((cast(int)&s41 & 0xF) == 0);
20 }
21 
22 /***************************************************/
23 
24 
25 struct S17034
26 {
27 @nogc pure nothrow:
28     private long v;
fooS1703429     void foo()
30     {
31         v >>>= 1;
32         if (!v)
33             return;
34         v >>>= 1;
35     }
36 }
37 
test17034()38 void test17034()
39 {
40     auto s = S17034(1L);
41     s.foo();
42     assert(s.v == 0);
43 }
44 
45 /***************************************************/
46 
main()47 int main()
48 {
49     test11310();
50     test17034();
51 
52     printf("Success\n");
53     return 0;
54 }
55