mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
23 lines
472 B
D
23 lines
472 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail152.d(16): Error: cannot use type `double` as an operand
|
|
fail_compilation/fail152.d(22): Error: template instance `fail152.a!double` error instantiating
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=1028
|
|
// Segfault using tuple inside asm code.
|
|
void a(X...)(X expr)
|
|
{
|
|
alias X[0] var1;
|
|
asm {
|
|
//fld double ptr X[0]; // (1) segfaults
|
|
fstp double ptr var1; // (2) ICE
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
a(3.6);
|
|
}
|