mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 03:42:55 +00:00
Basic API tests to check how template aliases are rendered by LLDB (using both `DW_TAG_template_alias` and `DW_TAG_typedef`, with and without `-gsimple-template-names`).
16 lines
296 B
C++
16 lines
296 B
C++
template <typename T> using Foo = T;
|
|
|
|
template <typename T> using Bar = Foo<T>;
|
|
|
|
template <typename T> struct Container {};
|
|
|
|
int main() {
|
|
Foo<int> f1;
|
|
Foo<double> f2;
|
|
Bar<int> b1;
|
|
Bar<double> b2;
|
|
Bar<Foo<int>> bf1;
|
|
Bar<Foo<double>> bf2;
|
|
Container<Bar<Foo<int>>> cbf1;
|
|
return 0;
|
|
}
|