18 lines · cpp
1void f(void (*)());2void f(void (*)(int));3 4struct G {5 G() {6 // multiple definitions are found for the same key in index7 f([]() -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)()#18 f([](int) -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)(int)#19 10 // As both lambda exprs have the same prefix, if the CTU index parser uses11 // the first space character as the delimiter between USR and file path, a12 // "multiple definitions are found for the same key in index" error will13 // be reported.14 }15};16 17void importee() {}18