blob: 974413451ace2783460ac66d3f03d1b0642c73b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//TEST:LANG_SERVER(filecheck=CHECK):
// Test that completion candidates are sorted according to context.
enum Fruit { Orange, Apple, Banana }
enum Color { Red, Green, Blue }
void expect(Fruit e) {}
void expect(Color e) {}
void test()
{
//COMPLETE:14,15
Fruit t = // should list `Fruit` first.
}
// CHECK: Fruit:{{.*}}sort(0:Fruit)
|