summaryrefslogtreecommitdiffstats
path: root/tests/language-server/recovery-unknown-func-modifier.slang
blob: b558f859099f5991935e55e84618716e0b8e9981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that the parser can recover after unknown function modifier.
//TEST:LANG_SERVER:
UNKNOWN_MODIFIER UNKNOWN_TYPE apparentFunc(int x, int y)
{
    return 0;
}

//HOVER:9,10
void nextFunc()
{
    syntax_error();
}