blob: 9208b796906a087f59612aef5cf1fd8a6e6c75b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//TEST:LANG_SERVER(filecheck=CHECK):
//HOVER:4,8
float dsqr<T:II
[ForwardDerivative(dsqr)]
float sqr<T:IInterface>(T obj, float x)
{
return no_diff(obj.calc(x)) + x * x;
}
// CHECK: dsqr
|