dmd/compiler/test/fail_compilation/test12430.d
2022-07-09 18:53:07 +02:00

18 lines
307 B
D

/*
REQUIRED_ARGS: -m64
TEST_OUTPUT:
---
fail_compilation/test12430.d(17): Error: simd operator must be an integer constant, not `op`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=12430
import core.simd;
void foo()
{
float4 a;
auto op = XMM.RSQRTPS;
auto b = __simd(op, a);
}