summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/static-init-2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* turn down the logical bitwise confusion warning to not warn Chris Lattner2010-07-241-1/+1
| | | | | | | | | when the RHS of the ||/&& is ever 0 or 1. This handles a variety of creative idioms for "true" used in C programs and fixes many false positives at the expense of a few false negatives. This fixes rdar://8230351. llvm-svn: 109314
* Add a warning to catch a bug recently caught by code review, like this:Chris Lattner2010-07-131-1/+1
| | | | | | | | | | | t2.c:2:12: warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wlogical-bitwise-confusion] return x && 4; ^ ~ wording improvement suggestions are welcome. llvm-svn: 108260
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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
* Avoid assert-crash in a case where the expression passed to EmitConstantExprEli Friedman2009-11-141-0/+6
legitimately has side-effects (and needs to be generated as a non-constant). llvm-svn: 88767
OpenPOWER on IntegriCloud