gcc/testsuite/gdc.test/compilable/betterc.d
raw| 1 | /* REQUIRED_ARGS: -betterC |
| 2 | */ |
| 3 | |
| 4 | // https://issues.dlang.org/show_bug.cgi?id=17787 |
| 5 | version (D_BetterC) |
| 6 | { |
| 7 | } |
| 8 | else |
| 9 | { |
| 10 | static assert(0); |
| 11 | } |
| 12 | |
| 13 | // -betterC does not support `ModuleInfo`, `TypeInfo`, or exception handling |
| 14 | version (D_ModuleInfo) |
| 15 | { |
| 16 | static assert(0); |
| 17 | } |
| 18 | |
| 19 | version (D_Exceptions) |
| 20 | { |
| 21 | static assert(0); |
| 22 | } |
| 23 | |
| 24 | version (D_TypeInfo) |
| 25 | { |
| 26 | static assert(0); |
| 27 | } |