diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/ice20264.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/ice20264.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/ice20264.d b/gcc/testsuite/gdc.test/fail_compilation/ice20264.d new file mode 100644 index 00000000000..0d697e22c9f --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/ice20264.d @@ -0,0 +1,13 @@ +/* +DISABLED: freebsd32 linux32 osx32 win32 +TEST_OUTPUT: +--- +fail_compilation/ice20264.d(12): Error: `cast(__vector(float[4]))a` is not an lvalue and cannot be modified +--- +*/ + +void foo(float *a) +{ + alias float4 = __vector(float[4]); + cast(float4)(a) = 1.0f; +} |