"struct{template struct{" would fail an assertion.
This assertion failure seems to have gone away somewhere along the line so
here's a test to make sure we don't regress. We still accept some very weird
explicit template 'instantiations' ("template int;", anyone) but at least we're
not asserting/crashing here.
llvm-svn: 152681
8 lines
310 B
C++
8 lines
310 B
C++
// RUN: not %clang_cc1 -fsyntax-only %s
|
|
|
|
// don't crash on this, but don't constrain our diagnostics here as they're
|
|
// currently rather poor (we even accept things like "template struct {}").
|
|
// Other, explicit tests, should verify the relevant behavior of template
|
|
// instantiation.
|
|
struct{template struct{
|