llvm-project/clang/test/Sema
Steve Naroff d57fa94148 Final phase of array cleanup (for now), removing a FIXME from yesterday.
Moved several array constraints checks from Sema::VerifyConstantArrayType() to
Sema::GetTypeForDeclarator(). VerifyConstantArrayType() is now very simple, and
could be removed eventually.

Now, we get the following (correct) messages for BlockVarDecls:-)

[dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang x.c -pedantic
x.c:4:20: error: size of array has non-integer type 'float'
  int size_not_int[f];
                   ^
x.c:5:21: error: array size is negative
  int negative_size[1-2];
                    ^~~
x.c:6:17: warning: zero size arrays are an extension
  int zero_size[0];
                ^
3 diagnostics generated.

llvm-svn: 41624
2007-08-30 22:35:45 +00:00
..
arg-duplicate.c Fix off-by-one error when emitting diagnostics. Also, make diagnostic 2007-07-21 03:09:58 +00:00
arg-invalid.c testcase from neil 2007-07-21 05:32:22 +00:00
array-constraint.c Final phase of array cleanup (for now), removing a FIXME from yesterday. 2007-08-30 22:35:45 +00:00
assign.c new testcase 2007-08-28 16:20:14 +00:00
c89-2.c -C mode doesn't return comments on "#" lines, so the diag checker doesn't pick them up. 2007-08-30 06:38:49 +00:00
c89.c -C mode doesn't return comments on "#" lines, so the diag checker doesn't pick them up. 2007-08-30 06:38:49 +00:00
carbon.c the sse intrinsics are missing, leading to errors. 2007-08-04 00:19:10 +00:00
cfstring.c Add initial support for constant CFStrings. 2007-08-17 05:31:46 +00:00
cocoa.m Test that cocoa parses with -parse-noop. In the future 2007-08-23 01:08:54 +00:00
compare.c Add Type::getAsBuiltinType() and Type::builtinTypesAreCompatible(). 2007-08-27 04:08:11 +00:00
cxx-references.cpp Fix references: 2007-07-17 03:52:31 +00:00
decl-invalid.c Fix a couple of bugs, add some new cool stuff. 2007-07-25 00:24:17 +00:00
default.c Two fixes: 2007-07-21 03:00:26 +00:00
enum.c compute the required destination type for an enum, emitting various warnings. 2007-08-28 06:15:15 +00:00
floating-point-compare.c Added checking (during parsing) of comparison of floating point values using == or !=. 2007-08-29 18:06:12 +00:00
for.c now that all the infrastructure is in place, enforce C99 6.8.5p3. 2007-08-28 05:03:08 +00:00
format-strings.c Added support for additional format string checking for the printf 2007-08-14 17:39:48 +00:00
i-c-e1.c new testcase 2007-06-08 17:58:14 +00:00
i-c-e2.c Remove an extraneous QualType from CastExpr, it's type is always 2007-07-15 23:54:50 +00:00
implicit-def.c new testcase 2006-11-20 07:03:41 +00:00
implicit-int.c Unspecified type specs default to int. This fixes a crash 2007-07-13 21:02:29 +00:00
offsetof.c a new testcase 2007-08-30 17:51:09 +00:00
return-stack-addr.cpp Added test cases for the return-stack-address checker to test support 2007-08-20 16:28:05 +00:00
stmt_exprs.c implement ast building and trivial semantic analysis of stmt exprs. 2007-07-24 16:58:17 +00:00
switch-duplicate-defaults.c Refactor switch analysis to make it possible to detect duplicate case values 2007-07-22 07:07:56 +00:00
switch.c finish off switch case overlap checking, adding support for 2007-08-23 18:29:20 +00:00
typedef-retain.c I forgot to check this in earlier 2007-07-17 04:58:06 +00:00
unused-expr.c Add Type::getAsBuiltinType() and Type::builtinTypesAreCompatible(). 2007-08-27 04:08:11 +00:00
void_arg.c move void argument checking from the parser to the semantic analysis stage. 2006-12-03 02:43:54 +00:00