aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/minimal.d
blob: 155f0edb618901822190019e965aa32aa1ace43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// DFLAGS:
// PERMUTE_ARGS:
// POST_SCRIPT: compilable/extra-files/minimal/verify_symbols.sh
// REQUIRED_ARGS: -defaultlib=
// EXTRA_SOURCES: extra-files/minimal/object.d

// This test ensures an empty main with a struct and enum, built with a minimal
// runtime, does not generate ModuleInfo or exception handling code, and does not
// require TypeInfo

struct S { }

enum E
{
    e0 = 0,
    e1 = 1
}

void main() { }