summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/enum.c
Commit message (Collapse)AuthorAgeFilesLines
* Comment a wacky test caseDouglas Gregor2011-01-181-0/+3
| | | | llvm-svn: 123758
* Avoid unneeded calls to opt/llvm-dis.Daniel Dunbar2010-04-021-2/+2
| | | | llvm-svn: 100236
* Implement promotion for enumeration types.Douglas Gregor2010-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | WHAT!?! It turns out that Type::isPromotableIntegerType() was not considering enumeration types to be promotable, so we would never do the promotion despite having properly computed the promotion type when the enum was defined. Various operations on values of enum type just "worked" because we could still compute the integer rank of an enum type; the oddity, however, is that operations such as "add an enum and an unsigned" would often have an enum result type (!). The bug actually showed up as a spurious -Wformat diagnostic (<rdar://problem/7595366>), but in theory it could cause miscompiles. In this commit: - Enum types with a promotion type of "int" or "unsigned int" are promotable. - Tweaked the computation of promotable types for enums - For all of the ABIs, treat enum types the same way as their underlying types (*not* their promotion types) for argument passing and return values - Extend the ABI tester with support for enumeration types llvm-svn: 95117
* 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
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Force triple for codegen tests which have expectations on outputDaniel Dunbar2009-02-031-1/+1
| | | | | | types. llvm-svn: 63669
* use -emit-llvm-bcChris Lattner2007-12-271-1/+1
| | | | llvm-svn: 45372
* Teach Type::is[un]SignedIntegerType about enum decls. This allows the code ↵Chris Lattner2007-08-291-0/+18
generator to emit signed comparisons when needed for enum decl references. This implements test/CodeGen/enum.c. I think enums should be good now. llvm-svn: 41572
OpenPOWER on IntegriCloud