mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 11:06:07 +00:00

Summary: The parsing logic has been separated out from the macro implementation logic, leading to a number of improvements: * Gracefully handle unexpected/invalid tokens, too few, too many and nested parameters * Provide consistent behaviour between all built-in feature-like macros * Simplify the implementation of macro logic * Fix __is_identifier to correctly return '0' for non-identifiers Reviewers: doug.gregor, rsmith Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D17149 llvm-svn: 265381
6 lines
169 B
C
6 lines
169 B
C
// RUN: %clang_cc1 -verify %s
|
|
|
|
// These must be the last lines in this test.
|
|
// expected-error@+1{{unterminated}} expected-error@+1 2{{expected}}
|
|
int i = __has_warning(
|