Debian Codegraph @

clang/test/PCH/pack-indexing-2.cpp

raw
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
3
4 // RUN: %clang_cc1 -std=c++2c -x c++-header %t/GH172464.h -emit-pch -o %t/GH172464.pch
5 // RUN: %clang_cc1 -std=c++2c -x c++ %t/GH172464.cpp -include-pch %t/GH172464.pch
6
7 //--- GH172464.h
8 template <class... Ts> struct _TypeInfo {
9 template <int id> using type = Ts...[id];
10 };
11 using TypeInfo = _TypeInfo<int>;
12
13 TypeInfo::type<0> a;
14
15 //--- GH172464.cpp
16 int main() {
17 TypeInfo::type<0> a;
18 }