tests/dmd/runnable/imports/test14901a.d
raw| 1 | module imports.test14901a; |
| 2 | |
| 3 | //extern(C) int printf(const char*, ...); |
| 4 | |
| 5 | extern extern(C) __gshared static int initCount; |
| 6 | |
| 7 | int make(string s)() |
| 8 | { |
| 9 | __gshared static int value; |
| 10 | |
| 11 | struct WithCtor |
| 12 | { |
| 13 | shared static this() |
| 14 | { |
| 15 | //printf("%s\n", s.ptr); |
| 16 | initCount++; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | return value; |
| 21 | } |