summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/invalid-struct-init.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing of type-specifier-seq's. Types are syntactically allowed to beRichard Smith2012-03-121-2/+0
| | | | | | | | | | | | | | | | | | defined here, but not semantically, so new struct S {}; is always ill-formed, even if there is a struct S in scope. We also had a couple of bugs in ParseOptionalTypeSpecifier caused by it being under-loved (due to it only being used in a few places) so merge it into ParseDeclarationSpecifiers with a new DeclSpecContext. To avoid regressing, this required improving ParseDeclarationSpecifiers' diagnostics in some cases. This also required teaching ParseSpecifierQualifierList about constexpr... which incidentally fixes an issue where we'd allow the constexpr specifier in other bad places. llvm-svn: 152549
* 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
* upgrade various 'implicit int' warnings from an ext-warn to warning when notChris Lattner2009-02-271-1/+4
| | | | | | | | in C89 mode. This makes it enabled by default instead of only enabled with -pedantic. Clang defaults to c99 mode, so people will see this more often than with GCC, but they can always use -std=c89 if they really want c89. llvm-svn: 65647
* make the 'to match this' diagnostic a note.Chris Lattner2008-11-231-1/+1
| | | | llvm-svn: 59921
* Tweak test...Steve Naroff2008-02-111-1/+0
| | | | llvm-svn: 46946
* Fix http://llvm.org/bugs/show_bug.cgi?id=1988.Steve Naroff2008-02-111-0/+27
Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942
OpenPOWER on IntegriCloud