gcc/testsuite/gdc.test/compilable/minimal.d
raw| 1 | // DFLAGS: |
| 2 | // PERMUTE_ARGS: |
| 3 | // POST_SCRIPT: compilable/extra-files/minimal/verify_symbols.sh |
| 4 | // REQUIRED_ARGS: -defaultlib= |
| 5 | // EXTRA_SOURCES: extra-files/minimal/object.d |
| 6 | |
| 7 | // This test ensures an empty main with a struct and enum, built with a minimal |
| 8 | // runtime, does not generate ModuleInfo or exception handling code, and does not |
| 9 | // require TypeInfo |
| 10 | |
| 11 | struct S { } |
| 12 | |
| 13 | enum E |
| 14 | { |
| 15 | e0 = 0, |
| 16 | e1 = 1 |
| 17 | } |
| 18 | |
| 19 | void main() { } |