blob: 7cf62af7181fea03f9d111dca012bb6cfd79e3ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//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,12
expect(); // should list `Fruit` and `Color` first.
}
// CHECK: Fruit:{{.*}}sort(0:Fruit)
// CHECK: Color:{{.*}}sort(0:Color)
|