Argyrios Kyrtzidis
f77453cf22
Add a test to make sure __has_include works from inside a macro.
...
llvm-svn: 176152
2013-02-27 01:34:48 +00:00
Aaron Ballman
6ce0000dd5
No longer crashing with an assert when __has_include or __has_include_next is used outside of a preprocessor directive. This fixes PR14837.
...
llvm-svn: 172639
2013-01-16 19:32:21 +00:00
Eli Friedman
ec94b61745
Make __has_include a bit more resilient in the presence of macros. <rdar://problem/12748859>.
...
llvm-svn: 171939
2013-01-09 02:20:00 +00:00
Richard Trieu
da031982b8
Fix for PR13334. This prevents crashes that result from badly formed
...
expressions involving __has_include
llvm-svn: 166438
2012-10-22 20:28:48 +00:00
Jordan Rose
1fa2acaed4
Start testing some commented-out cases of badly-formed __has_include.
...
Filed PR13334 for the cases that cause the compiler to crash, and
PR13335 for the cases where we should be recovering more gracefully.
llvm-svn: 160070
2012-07-11 20:12:19 +00:00
Chandler Carruth
b19289331d
This really seems like a boring set of fixes to our tests to make them more
...
independent of the underlying system. Let me know if any of these are too
aggressive.
llvm-svn: 119345
2010-11-16 10:26:08 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
John Thompson
ac0b098d4d
Added __has_include and __has_include_next.
...
llvm-svn: 85834
2009-11-02 22:28:12 +00:00