17 lines
361 B
C#
17 lines
361 B
C#
|
// CS0019: Operator `+' cannot be applied to operands of type `string' and `float*'
|
||
|
// Line: 12
|
||
|
// Compiler options: -unsafe
|
||
|
using System;
|
||
|
|
||
|
public class Driver {
|
||
|
public static void Main () {
|
||
|
float [] floats = new float[1];
|
||
|
floats[0] = 1.0f;
|
||
|
unsafe {
|
||
|
fixed (float *fp = &floats[0]) {
|
||
|
Console.WriteLine ("foo" + fp);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|