| 1 |
void f(void (*)()); |
| 2 |
void f(void (*)(int)); |
| 3 |
|
| 4 |
struct G { |
| 5 |
G() { |
| 6 |
// multiple definitions are found for the same key in index |
| 7 |
f([]() -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)()#1 |
| 8 |
f([](int) -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)(int)#1 |
| 9 |
|
| 10 |
// As both lambda exprs have the same prefix, if the CTU index parser uses |
| 11 |
// the first space character as the delimiter between USR and file path, a |
| 12 |
// "multiple definitions are found for the same key in index" error will |
| 13 |
// be reported. |
| 14 |
} |
| 15 |
}; |
| 16 |
|
| 17 |
void importee() {} |