summaryrefslogtreecommitdiffstats
path: root/tests/language-server/completion-sorting-5.slang
blob: cdbc401308fd98216ce01bc8c8430eaea0c97e03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:LANG_SERVER(filecheck=CHECK):

// Test that completion candidates are sorted according to context.

int myHelper() { return 0; }


void test(int p)
{
//COMPLETE:11,17
    int x = p + 

}

// CHECK: p:{{.*}}sort(1:p)
// CHECK: myHelper:{{.*}}sort(1:myHelper)