llvm-project/clang/test/Sema
Chris Lattner ec3a1565f6 teach getCorrespondingUnsignedType how to handle vectors of integers,
fixing PR4838.

llvm-svn: 84353
2009-10-17 20:33:28 +00:00
..
128bitint.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2727.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2728.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2919-builtin-types-compat-strips-crv.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2923.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2963-enum-constant.c Make VerifyIntegerConstantExpr print extension warnings for non-ICEs. 2009-04-25 22:26:58 +00:00
address-constant.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
address_spaces.c Add an error for function parameters that have a qualified address space since this is not allowed by the embedded c extension spec. 2009-09-30 20:47:43 +00:00
align-arm-apcs.c ARM target tweaks. 2009-09-14 00:02:24 +00:00
align-x86.c Extend getPreferredTypeAlign to handle _Complex double and long long 2009-05-25 21:27:19 +00:00
altivec-init.c Take 2 on AltiVec-style vector initializers. 2009-08-10 23:49:36 +00:00
annotate.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
anonymous-struct-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
arg-duplicate.c When calling a function without a prototype for which we have a 2009-04-02 15:37:10 +00:00
arg-scope-c99.c Prep for new warning. 2009-07-22 00:43:08 +00:00
arg-scope.c Prep for new warning. 2009-07-22 00:43:08 +00:00
array-constraint.c Prep for new warning. 2009-07-22 00:43:08 +00:00
array-declared-as-incorrect-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
array-init.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
asm.c Remove the -arch option from clang-cc: for all practical purposes, it's 2009-05-19 11:12:40 +00:00
assign-null.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
assign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
ast-print.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-aligned.c Properly compute the alignment of typedefs that make use of the 2009-04-30 17:32:17 +00:00
attr-cleanup.c Correct the order of the parameters to CheckAssignmentConstraints in 2009-04-26 01:30:08 +00:00
attr-decl-after-definition.c PR3575 - warn on declared variable or function attributes after a definition, which are currently ignored. 2009-07-25 22:29:44 +00:00
attr-deprecated.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
attr-format_arg.c Make having no RUN line a failure. 2009-07-25 12:47:38 +00:00
attr-malloc.c Change handling of attribute 'malloc' to only accept the attribute on function 2009-08-15 00:51:46 +00:00
attr-mode.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-nodebug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-noinline.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-noreturn.c Some people don't want to fix their broken code just yet, so turn off 2009-09-16 00:39:34 +00:00
attr-regparm.c Finish off semantic analysis for regparm, and remove the warning. Also 2009-03-27 21:06:47 +00:00
attr-section.c fix a couple of problems with section attributes: 2009-08-10 19:03:04 +00:00
attr-unused.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-used.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-weak.c Prep for new warning. 2009-07-22 00:43:08 +00:00
bitfield-layout.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bitfield-promote-int-16bit.c Fix bit-field promotion to be a bit closer to the behavior of gcc. 2009-08-20 04:21:42 +00:00
bitfield-promote.c Fix bit-field promotion to be a bit closer to the behavior of gcc. 2009-08-20 04:21:42 +00:00
bitfield.c Update tests 2009-09-14 22:00:20 +00:00
block-args.c Semantic checking for main(). 2009-07-25 04:36:53 +00:00
block-as-object.m Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-byref-args.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-call.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-labels.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-literal.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-misc.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-printf-attribute-1.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-return-1.c Add noreturn support for blocks. 2009-07-28 22:04:01 +00:00
block-return-2.c Add noreturn support for blocks. 2009-07-28 22:04:01 +00:00
block-return-3.c Add noreturn support for blocks. 2009-07-28 22:04:01 +00:00
block-return.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-sentinel-attribute.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
block-storageclass.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-object-size.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-prefetch.c Prep for new warning. 2009-07-22 00:43:08 +00:00
builtin-stackaddress.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-unary-fp.c PR4836, part 1: add Sema support for __builtin_isnan and friends; they 2009-08-31 20:06:00 +00:00
builtins.c Provide a custom diagnostic when code tries to use an unknown builtin 2009-09-28 21:14:19 +00:00
c89-2.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
c89.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
callingconv.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
carbon.c Improve handling of (X86) target features. 2009-05-06 03:16:41 +00:00
cast-to-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cast.c PR4013 and PR4105: pointer-like types can only be cast to/from integers 2009-05-01 02:23:58 +00:00
check-increment.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
compare.c Remove unnecessary include. 2009-08-27 19:02:44 +00:00
complex-int.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
complex-promotion.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
compound-literal.c PR3009: Get rid of bogus warning for scalar compound literals. 2009-05-16 11:45:48 +00:00
conditional-expr.c Sema::CheckConditionalOperands(): Soften pointer/integer mismatch from error->warning. 2009-04-08 17:05:15 +00:00
conditional.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
const-eval.c PR4351: Add constant evaluation for constructs like "foo == NULL", where 2009-06-14 02:17:33 +00:00
const-ptr-int-ptr-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-builtins-2.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-builtins.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
constructor-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
darwin-align-cast.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
decl-invalid.c improve the diagnostic for uses of the GCC "global variable in a register" extension. 2009-05-12 21:44:00 +00:00
decl-type-merging.c Prep for new warning. 2009-07-22 00:43:08 +00:00
declspec.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
default.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
default1.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
deref.c PR2524: downgrade taking address of expression of type 'void' to an 2009-05-03 22:36:05 +00:00
designated-initializers.c Remove the -arch option from clang-cc: for all practical purposes, it's 2009-05-19 11:12:40 +00:00
dllimport-dllexport.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
enum.c Ok, ok, I give in. Fix tests for unused result warning. 2009-08-01 06:07:15 +00:00
expr-address-of.c Some cleanup and bug-fixing for address-of checking. This causes a couple of 2009-04-20 08:23:18 +00:00
expr-comma-c89.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
expr-comma.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
exprs.c Update tests 2009-09-14 22:00:20 +00:00
ext_vector_casts.c OpenCL 1.0 support: 2009-06-28 02:36:38 +00:00
ext_vector_components.c OpenCL 1.0 Support: 2009-06-26 18:22:18 +00:00
flexible-array-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
floating-point-compare.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
for.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
format-attr-pr4470.c Misc fixes to fix tests on OpenBSD, per email to cfe-commits. Patches 2009-07-10 20:10:06 +00:00
format-attribute-printf0.c add support for FreeBSD's format(printf0,x,y) attribute; allows null format string. 2009-08-06 03:00:50 +00:00
format-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
format-string-percentm.c PR4142: Add %m format string specifier. 2009-06-02 08:36:19 +00:00
format-strings.c Fix <rdar://problem/6880975> [format string] Assertion failed: (Arg < NumArgs && "Arg access out of range!"). 2009-05-13 16:06:05 +00:00
freemain.c Disable all recognition of main() in -ffreestanding. Addresses bug #4720. 2009-08-15 02:09:25 +00:00
function-pointer-sentinel-attribute.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
function-ptr.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
function-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
function-sentinel-attr.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
function.c In C++, a variadic function does not need an ellipsis prior to the comma. Parse it in both C and C++, but diagnose it as an error in C with a fix-it hint to add the comma. 2009-09-22 21:41:40 +00:00
gnu89.c restrict is not a keyword in gnu89 mode. Change TokenKinds.def to 2009-05-27 22:48:34 +00:00
heinous-extensions-off.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
heinous-extensions-on.c Prep for new warning. 2009-07-22 00:43:08 +00:00
i-c-e.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
if-empty-body.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
illegal-types.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-freestanding.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-redecl.c Tighten up the conditions under which we build an implicit function 2009-07-07 17:00:05 +00:00
implicit-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-def.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-int.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
incompatible-sign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
incomplete-call.c Add CheckCallReturnType and start using it for regular call expressions. This will improve error messages. For 2009-10-09 23:51:55 +00:00
incomplete-decl.c Improve GCC compatibility by allowing static tentative definitions of 2009-07-20 18:46:59 +00:00
indirect-goto.c Sanity-check argument to indirect goto. 2009-03-26 07:32:37 +00:00
init-struct-qualified.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
init-vector.c Allow initializing a vector with a vector in addition to allowing a list 2009-06-13 10:38:46 +00:00
init.c Fix for PR4285: allow intializing a const wchar_t array with a wide 2009-05-31 10:54:53 +00:00
inline.c Diagnose uses of function specifiers on declarations which don't declare 2009-04-07 19:37:57 +00:00
int-arith-convert.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
invalid-decl.c This is a pretty big cleanup for how invalid decl/type are handle. 2009-04-25 08:06:05 +00:00
invalid-init-diag.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
invalid-struct-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
knr-def-call.c When calling a function without a prototype for which we have a 2009-04-02 15:37:10 +00:00
knr-variadic-def.c PR4287: allow a variadic prototype to make a subsequent K&R style 2009-06-01 09:24:59 +00:00
member-reference.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
merge-decls.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
ms-fuzzy-asm.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
nested-redef.c Change SemaType's "GetTypeForDeclarator" and "ConvertDeclSpecToType" to 2009-04-25 08:47:54 +00:00
offsetof.c Fix for PR4079: make sure to construct the member expressions for 2009-04-26 20:50:44 +00:00
overloadable-complex.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
overloadable.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-addition.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-subtract-compat.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-pack-2.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-pack-3.c Add a test case to showcase a difference in #pragma pack handling 2009-05-13 21:34:08 +00:00
pragma-pack-4.c Add tests. 2009-08-08 19:43:14 +00:00
pragma-pack.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-unused.c Per advice that Doug Gregor gave me several months ago, clean up the 2009-08-03 23:24:57 +00:00
predef.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
predefined-function.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
private-extern.c Fix <rdar://problem/6789707> "warning: 'extern' variable has an initializer" not correct for __private_extern__. 2009-04-15 15:20:03 +00:00
promote-int-16bit.c Make integer promotions work correctly on PIC16 and other platforms 2009-08-19 07:44:53 +00:00
rdar6248119.m Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr6094103-unordered-compare-promote.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
recover-goto.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
redefinition.c Prep for new warning. 2009-07-22 00:43:08 +00:00
return-noreturn.c Add a "positive" matching test case for attribute 'noreturn' that involves a nested infinite loop. 2009-09-26 03:54:06 +00:00
return-silent.c Name the "return-type" DiagGroup and reference it in a few places. 2009-04-30 17:53:16 +00:00
return.c Be sure to turn on -fblocks. 2009-07-29 00:17:20 +00:00
scope-check.c run the jump checker on blocks, even though they don't have gotos, 2009-04-19 05:28:12 +00:00
self-comparison.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
sentinel-attribute.c Adds recognition of sentinel attribute on block declarations. 2009-05-14 20:53:39 +00:00
shift.c PR4700 - remove shift by 0 warning 2009-08-08 19:18:23 +00:00
statements.c __builtin_prefetch should be declared as "void __builtin_prefetch(const void *)", 2009-04-18 06:51:21 +00:00
static-init.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
stdcall-fastcall.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-compat.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-decl.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
struct-packed-align.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
surpress-deprecated.c Add -Wdeprecated-declarations to driver and add a test case. 2009-03-31 17:28:26 +00:00
switch.c Implement PR4407 - missing warnings on case value overflow, 2009-10-16 16:45:22 +00:00
tentative-decls.c Improve GCC compatibility by allowing static tentative definitions of 2009-07-20 18:46:59 +00:00
text-diag.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
thread-specifier.c Print an error for uses of __thread on targets which don't support it. 2009-04-19 21:48:33 +00:00
transparent-union-pointer.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
transparent-union.c Implement semantic analysis for transparent unions. This is largely 2009-04-29 22:16:16 +00:00
type-spec-struct-union.c Prep for new warning. 2009-07-22 00:43:08 +00:00
typecheck-binop.c Make sure to use RequireCompleteType rather than testing for 2009-03-24 19:52:54 +00:00
typedef-prototype.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typedef-redef.c tweak redefinition of a typedef a bit to fix a couple of problems: 2009-04-17 22:04:20 +00:00
typedef-retain.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typedef-variable-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
types.c Fix rdar://6880951 by rejecting vectors of vectors. 2009-05-13 05:13:44 +00:00
ucn-cstring.c Incorporate feedback from Eli. 2009-03-31 10:29:45 +00:00
unnamed-bitfield-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
unused-expr.c add rdar # I accidentally lost. 2009-10-13 04:57:27 +00:00
usual-float.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
va_arg_x86_32.c Add stricter checking for va_arg. 2009-05-16 12:46:54 +00:00
va_arg_x86_64.c Prep for new warning. 2009-07-22 00:43:08 +00:00
var-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
varargs-x86-64.c Daniel convinced me that accepting "const va_list" arguments to va_arg is 2009-04-06 17:07:34 +00:00
varargs.c PR2524: downgrade taking address of expression of type 'void' to an 2009-05-03 22:36:05 +00:00
variadic-block.c Fix <rdar://problem/6786597> varargs not supported for Blocks under clang. 2009-04-15 19:33:47 +00:00
vector-assign.c teach getCorrespondingUnsignedType how to handle vectors of integers, 2009-10-17 20:33:28 +00:00
vector-cast.c Don't perform integer promotions on the operand to a cast; this 2009-08-15 19:02:19 +00:00
vector-init.c Fix rdar://6881069, a crash on a form of vector_size that we 2009-05-13 04:00:12 +00:00
vfprintf-invalid-redecl.c PR4290: Handle vfprintf in a way that doesn't give any diagnostics for 2009-06-03 09:54:50 +00:00
vfprintf-valid-redecl.c PR4290: Handle vfprintf in a way that doesn't give any diagnostics for 2009-06-03 09:54:50 +00:00
vla.c Revert r72575, which isn't really right, and fix up other code to 2009-05-29 18:22:49 +00:00
void_arg.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
warn-char-subscripts.c -Wchar-subscripts should not warn for explicit signed char subscripts either. Another fix for PR4978. 2009-09-14 20:14:57 +00:00
warn-freestanding-complex.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
warn-missing-prototypes.c add radar number 2009-04-11 17:26:58 +00:00
warn-unused-parameters.c Add -fblocks 2009-06-20 00:29:46 +00:00
warn-unused-variables.c Implement support for -Wunused-variable, from Oscar Bonilla! 2009-10-08 21:35:42 +00:00
wchar.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
x86-intrinsics-headers.c Attempt to make a test portable. 2009-09-18 22:09:24 +00:00