aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeCompletion/GH139019.cpp
blob: fed35b38362a1339aa31326fe3b89b5f8997bb09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/test.hpp -emit-pch -o %t/1.pch
// RUN: %clang_cc1 -std=c++20 %t/test.cpp -include-pch %t/1.pch -code-completion-at=%t/test.cpp:7:17

//--- test.hpp
#pragma once
class provider_t
{
  public:
    template<class T>
    void emit(T *data)
    {}
};

//--- test.cpp
#include "test.hpp"

void test()
{
    provider_t *focus;
    void *data;
    focus->emit(&data);
}