Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaTemplate/template-decl-fail.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |
3 template<typename T> typedef T X; // expected-error{{typedef cannot be a template}} | |
4 | |
5 template<typename T> | |
6 enum t0 { A = T::x }; // expected-error{{enumeration cannot be a template}} \ | |
207 | 7 // expected-error{{declaration does not declare anything}} |
150 | 8 |
9 enum e0 {}; | |
10 template<int x> enum e0 f0(int a=x) {} |