[NFC] Maintainers.rst: align email address formatting
[llvm-project.git] / clang / test / PCH / cxx-chain-function-template.cpp
blob494e190f776b3cccfbc48068404f7e0ecda0a89a
1 // RUN: %clang_cc1 -chain-include %s -chain-include %s -fsyntax-only %s
2 // Just don't crash.
3 #if !defined(RUN1)
4 #define RUN1
6 struct CXXRecordDecl { CXXRecordDecl(int); };
8 template <typename T, typename U>
9 T cast(U u) {
10 return reinterpret_cast<T&>(u);
13 void test1() {
14 cast<float>(1);
17 #elif !defined(RUN2)
18 #define RUN2
20 template <typename T>
21 void test2(T) {
22 cast<CXXRecordDecl>(1.0f);
25 #else
27 void test3() {
28 cast<CXXRecordDecl>(1.0f);
29 test2(1);
32 #endif