mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

propagating error conditions out of the various annotate-me-a-snowflake routines. Generally (but not universally) removes redundant diagnostics as well as, you know, not crashing on bad code. On the other hand, I have just signed myself up to fix fiddly parser errors for the next week. Again. llvm-svn: 97221
10 lines
319 B
C++
10 lines
319 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template<typename T> struct A {};
|
|
|
|
// Check for template argument lists followed by junk
|
|
// FIXME: The diagnostics here aren't great...
|
|
A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}}
|
|
A<int x; // expected-error {{expected '>'}}
|
|
|