brintos

brintos / llvm-project-archived public Read only

0
0
Text · 457 B · fed35b3 Raw
27 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/test.hpp -emit-pch -o %t/1.pch6// RUN: %clang_cc1 -std=c++20 %t/test.cpp -include-pch %t/1.pch -code-completion-at=%t/test.cpp:7:177 8//--- test.hpp9#pragma once10class provider_t11{12  public:13    template<class T>14    void emit(T *data)15    {}16};17 18//--- test.cpp19#include "test.hpp"20 21void test()22{23    provider_t *focus;24    void *data;25    focus->emit(&data);26}27