gcc/testsuite/gdc.test/compilable/dip22.d
raw| 1 | // REQUIRED_ARGS: -de |
| 2 | // EXTRA_FILES: imports/dip22.d |
| 3 | import imports.dip22; |
| 4 | |
| 5 | class Foo : Base1, Base2 |
| 6 | { |
| 7 | void test() |
| 8 | { |
| 9 | static assert(typeof(bar()).sizeof == 2); |
| 10 | static assert(baz == 2); |
| 11 | static assert(T.sizeof == 2); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | void test() |
| 16 | { |
| 17 | bar(12); |
| 18 | baz(12); |
| 19 | 12.bar(); |
| 20 | 12.baz(); |
| 21 | } |