1 // RUN: %clang_cc1 -std=c++11 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s
4 // RUN: %clang_cc1 -std=c++11 -emit-pch -fpch-instantiate-templates -o %t %s
5 // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s
7 // expected-no-diagnostics
9 // Before the patch, this test triggered an assert violation in
10 // ASTContext::getSubstTemplateTypeParmType.
12 #ifndef HEADER_INCLUDED
13 #define HEADER_INCLUDED
20 template <typename Y
, typename
= decltype(Y())>
26 template <typename B
, typename
= Id
<decltype(B())>>