xref: /llvm-project/clang/test/Modules/Inputs/gmodules-preferred-name-alias.h (revision 711a64412749ae73709562b591ab1609a3ee7751)
1*711a6441SMichael Buch template<typename T> struct Foo;
2*711a6441SMichael Buch 
3*711a6441SMichael Buch template<typename T>
4*711a6441SMichael Buch using Bar = Foo<T>;
5*711a6441SMichael Buch 
6*711a6441SMichael Buch template<typename T> struct [[clang::preferred_name(Bar<T>)]] Foo {};
7*711a6441SMichael Buch 
8*711a6441SMichael Buch template <typename T> struct Baz { Foo<char> member; };
9