clang-1/test/Sema
Eli Friedman 67f85fcdab Fix for PR5447: teach Evaluate to deal with floating-point conditionals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90521 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-04 02:12:53 +00:00
..
128bitint.c Add a triple to try to fix the buildbot error. 2009-11-09 17:54:53 +00:00
PR2727.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
PR2728.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Driver: Use '-target-abi' 'FOO' instead of '-target-abi=FOO'. 2009-11-20 22:32:30 +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 Remove unnecessary -fblocks=0. 2009-11-29 09:32:38 +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 Change our basic strategy for avoiding deprecation warnings when the decl use 2009-11-04 02:18:39 +00:00
attr-format_arg.c Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
attr-malloc.c Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +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 Downgrade "function declared 'noreturn' should not return" from an 2009-10-21 15:46:01 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
builtin-object-size.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtin-prefetch.c Fix for PR5679: make __builtin_prefetch a bit more flexible in what it accepts 2009-12-04 00:30:06 +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 Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGen 2009-11-09 18:38:53 +00:00
carbon.c Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'. 2009-11-20 22:21:52 +00:00
cast-to-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cast.c Fix a recent regression probably caused by addition of altivec-style 2009-11-23 19:51:43 +00:00
check-increment.c Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
compare.c compare.c also needs a target triple now, and improve some comments while we're 2009-11-06 08:53:51 +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 Turn off -Wsign-compare warnings by default 2009-11-06 05:24:12 +00:00
conditional.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
const-eval.c Add constant evaluation for comma operator with floating-point operand. Fixes 2009-11-16 04:25:37 +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 Fix the type of __builtin_expect, from Ed Schouten! 2009-10-31 16:04:14 +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
conversion-64-32.c Support -Wshorten-64-to-32 for integer types only, which seems to satisfy the 2009-11-07 09:03:53 +00:00
conversion.c Fix PR 5422: handle lvalue results when evaluating 'based' ptrtoints as part of 2009-11-11 22:52:37 +00:00
darwin-align-cast.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
decl-invalid.c Reorganize the parsing of decl groups / function definitions so that 2009-11-03 19:26:08 +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 Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +00:00
expr-comma.c Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +00:00
exprs.c Remove unnecessary -fblocks=0. 2009-11-29 09:32:38 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +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 Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 PR5447: teach Evaluate to deal with floating-point conditionals. 2009-12-04 02:12: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 Diagnose __builtin_offsetof on incomplete types. Fixes 2009-11-04 03:03:43 +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
parentheses.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
pointer-addition.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-conversion.c Changed error for nested type qualifier mismatch to 2009-11-09 22:16:37 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Fix PR5298 - -Wmissing-noreturn shouldn't warn if the function is already 2009-10-25 22:43:07 +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 Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +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 Use clang to run tests which include headers from the system. 2009-11-17 10:14:55 +00:00
statements.c warn about returning the address of a label. 2009-10-30 04:01:58 +00:00
static-init.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
stdcall-fastcall.c Diagnose the use of 'fastcall' on functions without prototypes or with 2009-11-04 03:36:09 +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 When the condition of a switch() statement is semantically invalid, 2009-11-25 06:20:02 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
unnamed-bitfield-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
unused-expr.c Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... variants instead of using llvm:🆑:init(true) arguments. 2009-11-19 04:55:23 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Phrase compile time assert in standard way. 2009-10-25 23:11:15 +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 Fix for PR5233. 2009-11-22 16:21:47 +00:00
x86-intrinsics-headers.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00