summaryrefslogtreecommitdiffstats
path: root/tests/language-server/completion-sorting-4.slang
blob: 9e9f2b15c416d6b7793ab3222d28ddfb69824223 (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,13
    int x = 

}

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