aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/Inputs/ctu-lookup-name-with-space.cpp
blob: 0d4fd974d3d4f32ab23cc0e0f17fe23d1a868b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void f(void (*)());
void f(void (*)(int));

struct G {
  G() {
    // multiple definitions are found for the same key in index
    f([]() -> void {});    // USR: c:@S@G@F@G#@Sa@F@operator void (*)()#1
    f([](int) -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)(int)#1

    // As both lambda exprs have the same prefix, if the CTU index parser uses
    // the first space character as the delimiter between USR and file path, a
    // "multiple definitions are found for the same key in index" error will
    // be reported.
  }
};

void importee() {}