Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / Core / index-pch.cpp
blob8c5a92b612c4b30567749c1ee41bd5e0a52af334
1 // RUN: c-index-test core -print-source-symbols -- %s -std=c++14 | FileCheck %s
2 // RUN: %clang_cc1 -emit-pch %s -std=c++14 -o %t.pch
3 // RUN: c-index-test core -print-source-symbols -module-file %t.pch | FileCheck %s
5 // CHECK: [[@LINE+2]]:8 | struct(Gen)/C++ | DETECTOR | [[DETECTOR_USR:.*]] | {{.*}} | Def | rel: 0
6 template <class _Default, class _AlwaysVoid, template <class...> class _Op, class... _Args>
7 struct DETECTOR {
8 using value_t = int;
9 };
11 struct nonesuch {};
13 // CHECK: [[@LINE+4]]:9 | type-alias/C++ | is_detected
14 // CHECK: [[@LINE+3]]:32 | struct(Gen)/C++ | DETECTOR | [[DETECTOR_USR]] | {{.*}} | Ref,RelCont | rel: 1
15 // CHECK-NEXT: RelCont | is_detected
16 template <template<class...> class _Op, class... _Args>
17 using is_detected = typename DETECTOR<nonesuch, void, _Op, _Args...>::value_t;