summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/template-decl-fail.cpp
blob: a298c6d5a4ba0f0c30db172b512f7cef7545902e (plain)
1
2
3
// RUN: %clang_cc1 -fsyntax-only -verify %s

template<typename T> typedef T X; // expected-error{{typedef cannot be a template}}
OpenPOWER on IntegriCloud