gcc/testsuite/gdc.test/compilable/dtoh_unittest_block.d
raw| 1 | /* |
| 2 | REQUIRED_ARGS: -HC -c -o- |
| 3 | PERMUTE_ARGS: |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | // Automatically generated by Digital Mars D Compiler |
| 7 | |
| 8 | #pragma once |
| 9 | |
| 10 | #include <assert.h> |
| 11 | #include <math.h> |
| 12 | #include <stddef.h> |
| 13 | #include <stdint.h> |
| 14 | |
| 15 | |
| 16 | --- |
| 17 | */ |
| 18 | |
| 19 | unittest |
| 20 | { |
| 21 | extern (C++) int foo(int x) |
| 22 | { |
| 23 | return x * 42; |
| 24 | } |
| 25 | } |