gcc/testsuite/gdc.test/runnable_cxx/test20652.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=20652 |
| 2 | // EXTRA_CPP_SOURCES: test20652.cpp |
| 3 | |
| 4 | import core.simd; |
| 5 | |
| 6 | static if (!__traits(compiles, float4)) // No __vector support |
| 7 | { |
| 8 | void main() {} |
| 9 | } |
| 10 | else |
| 11 | { |
| 12 | extern(C++) void test20652(ref const float4); |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | float4 f4 = 1; |
| 17 | test20652(f4); |
| 18 | } |
| 19 | } |