clang/test/CodeGenObjC
Fariborz Jahanian 8fefc8e245 objc-arc: fix a IRGen crash when checking for
accessibility of an initializer which is a compound 
statement. // rdar://9694706


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134091 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-29 20:00:16 +00:00
..
2008-08-25-incompatible-cond-expr.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
2008-10-23-invalid-icmp.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
2009-01-21-invalid-debug-info.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
2010-02-09-DbgSelf.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
2010-02-15-Dbg-MethodStart.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
arc-arm.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-block-ivar-layout.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-bridged-cast.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-compound-stmt.m objc-arc: fix a IRGen crash when checking for 2011-06-29 20:00:16 +00:00
arc-foreach.m Objective-C fast enumeration loop variables are not retained in ARC, but 2011-06-17 06:42:21 +00:00
arc-ivar-layout.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-no-runtime.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-related-result-type.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-unbridged-cast.m objc-arc: Add support for unbridged cast of 2011-06-21 19:42:38 +00:00
arc-unopt.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc-weak-property.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc.m Change the IR-generation of VLAs so that we capture bounds, 2011-06-24 21:55:10 +00:00
arm-atomic-scalar-setter-getter.m Objective-c armv7 API for atomic properties of 2011-02-18 19:15:13 +00:00
assign.m IRgen: Assignment to Objective-C properties shouldn't reload the value, for 2010-06-29 22:44:21 +00:00
atomic-aggregate-property.m Refine rules for atomic property api to 2011-04-06 16:05:26 +00:00
attr-availability.m On Mac OS X, the presence of an 'availability' attribute for that 2011-03-26 12:10:19 +00:00
attr-strong.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
autorelease.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
bitfield-1.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
bitfield-access.m tests: Tweak test to not write to the same temporary twice, in the hopes of avoiding sporadic win32 failures about renaming a temporary. 2011-04-28 21:23:38 +00:00
bitfield-gnu.m Fix for PR8695. 2010-12-26 20:12:30 +00:00
bitfield-ivar-metadata.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
bitfield-ivar-offsets.m Pack ivar offsets together. 2011-05-04 21:37:25 +00:00
bitfield_encoding.m Fixed Objective-C type encoding for bitfields for the GNU runtime to match the encoding used by GCC. 2010-06-04 01:10:52 +00:00
block-6.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
block-var-layout.m A few more tweaks to the blocks AST representation: 2011-02-07 10:33:21 +00:00
blocks-1.m IR Gen. part of API support for __block cxx 2010-12-02 17:02:11 +00:00
blocks-2.m Convert Clang over to resuming from landing pads with llvm.eh.resume. 2011-05-28 21:13:02 +00:00
blocks-3.m Reorganize the emission of local variables. 2011-02-22 06:44:22 +00:00
blocks-4.m Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. 2011-02-22 01:52:06 +00:00
blocks-5.m Fixed a block regression caused by trying to use 2010-06-07 19:39:39 +00:00
blocks-ivar-debug.m tests: Avoid spurious use of /dev/null. 2010-05-10 23:31:31 +00:00
blocks.m Don't emit read barriers for reading __weak __block variables 2011-03-16 02:53:38 +00:00
category-class.m Trying to make BuildBot happy again (related to PR7431). 2010-06-22 17:08:32 +00:00
category-super-class-meth.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
class-getter-dotsyntax.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
class-type.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
compatibility-alias.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
complex-property.m Fix a code gen. bug involving generation of getter method 2010-03-25 21:56:43 +00:00
constant-string-class-1.m Patch to fix IR-gen crash generating structure ABI which implements 2011-05-17 22:21:16 +00:00
constant-string-class.m Patch to fix IR-gen crash generating structure ABI which implements 2011-05-17 22:21:16 +00:00
constant-strings.m IRgen/Obj-C: Emit CFStrings and NSStrings with the alignment of the char type, 2011-04-12 23:30:52 +00:00
continuation-class.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
deadcode_strip_used_var.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
debug-info-block-helper.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
debug-info-blocks.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
debug-info-class-extension.m Doug convinced me that DW_AT_APPLE_objc_complete_type is more appropriate name. 2011-05-12 21:29:57 +00:00
debug-info-class-extension2.m Doug convinced me that DW_AT_APPLE_objc_complete_type is more appropriate name. 2011-05-12 21:29:57 +00:00
debug-info-class-extension3.m Doug convinced me that DW_AT_APPLE_objc_complete_type is more appropriate name. 2011-05-12 21:29:57 +00:00
debug-info-crash.m These tests require particular registered targets. Declared as such. 2011-06-04 04:38:16 +00:00
debug-info-default-synth-ivar.m Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi. 2011-01-04 20:05:20 +00:00
debug-info-fnname.m test case for r118726. 2010-11-10 22:19:57 +00:00
debug-info-getter-name.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
debug-info-linkagename.m Robustify test. 2010-08-25 17:32:22 +00:00
debug-info-property.m Emit debug info for Objective-C properties. 2011-04-16 00:12:55 +00:00
debug-info-pubtypes.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
debug-info-selector.m Emit debug info for objc_selector. 2011-02-09 03:15:05 +00:00
debug-info-self.m Attach aritifical attribute with implicit parameters. 2010-09-29 23:09:21 +00:00
debug-info-static-var.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
debug-property-synth.m Fix location of setter/getter synthesized for a property. 2011-05-19 23:37:41 +00:00
default-property-synthesis.m Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi. 2011-01-04 20:05:20 +00:00
dot-syntax-1.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
dot-syntax-2.m When using property-dot assignment syntax to call a setter method, 2010-06-07 22:02:01 +00:00
dot-syntax.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
encode-cstyle-method.m Implement method type encoding in the presense 2010-04-08 21:29:11 +00:00
encode-test-2.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
encode-test-3.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
encode-test-4.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
encode-test-5.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
encode-test.m For the purpose of @encode'ing, accept 'void' type 2011-06-16 22:34:44 +00:00
exceptions-nonfragile.m Emit @finally blocks completely lazily instead of forcing their 2011-06-22 02:32:12 +00:00
exceptions.m Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. 2011-02-22 01:52:06 +00:00
for-in.m Establish the iteration variable of an ObjC for-in loop before 2011-02-22 07:16:58 +00:00
forward-class-impl-metadata.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
forward-decl-param.m Objective-C doesn't consider the use of incomplete types as method 2011-05-27 01:19:52 +00:00
fpret.m objc IRGen for Next runtime message API. 2011-03-01 17:28:13 +00:00
function-decay.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
gc.m Test case for r133840, neglectfully uncommitted. 2011-06-24 23:29:50 +00:00
gnu-exceptions.m Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. 2011-02-22 01:52:06 +00:00
hidden-visibility.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
hidden.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
id-isa-codegen.m Fix the test some more. 2010-03-09 22:17:52 +00:00
illegal-UTF8.m Move some Objective-C tests to SemaObjC and CodeGenObjC. 2011-02-22 01:23:29 +00:00
image-info.m IRgen/NeXT: Reuse EmitImageInfo for both fragile and non-fragile ABI. This fixes Clang to correctly emit the "CorrectedSynthesize" bit when using the non-fragile ABI. 2010-04-25 20:39:01 +00:00
implicit-objc_msgSend.m Restore patch reversed in r118475. Fixes 2010-11-09 21:38:20 +00:00
implicit-property.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
instance-method-metadata.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
interface-layout-64.m Pack ivar offsets together. 2011-05-04 21:37:25 +00:00
interface.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
ivar-layout-64-bitfields.m _Bool is not a keyword in C++. Fixes PR7388 and PR8349. 2010-10-13 20:00:38 +00:00
ivar-layout-64.m More tests for ObjC++ GC support. 2010-05-19 23:07:54 +00:00
ivar-layout-array0-struct.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
ivar-layout-no-optimize.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
ivar-layout-nonfragile-abi2.m Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi. 2011-01-04 20:05:20 +00:00
ivars.m LastFieldBitfield in CGObjCCommonMac::BuildAggrIvarLayout keeps bitfields or unnamed fields but later the code 2010-09-06 12:00:10 +00:00
link-errors.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
local-static-block.m Local static block variable referecned in its 2010-09-07 23:26:17 +00:00
message-arrays.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
messages-2.m Only perform the null-initialization of an aggregate result of a message 2011-05-14 21:12:11 +00:00
messages.m Fixed type error in last commit (forgot that now that selectors are not 2011-03-23 22:52:06 +00:00
metadata-symbols-32.m and revert the related tests, too 2010-07-19 22:53:57 +00:00
metadata-symbols-64.m Pack ivar offsets together. 2011-05-04 21:37:25 +00:00
metadata_symbols.m Obj-C/NeXT: Update and reapply 108847, now that changes are more baked. 2011-03-25 20:09:09 +00:00
misc-atomic-property.m Generate atomic api for atomic properties (x86 and x86_64 2011-04-05 21:41:23 +00:00
mrr-autorelease.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
nested-rethrow.m Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. 2011-02-22 01:52:06 +00:00
newproperty-nested-synthesis-1.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
next-objc-dispatch.m NeXT: Clean up dispatch method policy selection. 2010-04-24 17:56:46 +00:00
no-category-class.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
no-vararg-messaging.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
non-lazy-classes.m tests: Force a triple. 2010-04-26 10:58:19 +00:00
nonlazy-msgSend.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
ns-constant-strings.m merge strings created by 2011-01-17 22:11:21 +00:00
objc-align.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc-assign-ivar.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc-gc-aggr-assign.m Changed test to use FileCheck. 2010-05-21 16:13:37 +00:00
objc-read-weak-byref.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
objc2-assign-global.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-ivar-assign.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-legacy-dispatch.m NeXT: Clean up dispatch method policy selection. 2010-04-24 17:56:46 +00:00
objc2-new-gc-api-strongcast.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-no-strong-cast.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-no-write-barrier.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-nonfragile-abi-impl.m Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi. 2011-01-04 20:05:20 +00:00
objc2-property-encode.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-protocol-enc.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-retain-codegen.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-strong-cast-1.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-strong-cast.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-weak-assign.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-weak-block-call.m Don't call objc_read_weak as part of emitting a block literal. 2011-02-16 00:49:34 +00:00
objc2-weak-compare.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-weak-import-attribute.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
objc2-weak-ivar-debug.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-weak-ivar.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-write-barrier-2.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-write-barrier-3.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-write-barrier-4.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-write-barrier-5.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
objc2-write-barrier.m More Objective-C++ GC tests. 2010-05-20 18:22:28 +00:00
object-incr-decr-1.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
overloadable.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
predefined-expr.m Add unnamed_addr when creating artificial string globals. For example, in 2011-01-10 22:34:03 +00:00
property-aggr-type.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
property-agrr-getter.m We can't emit an aggregate cast as its sub-expression in general just 2011-04-12 22:02:02 +00:00
property-category-impl.m Fixes a problem in generation of meta-data for 2010-06-22 16:33:55 +00:00
property-complex.m Fix test. 2010-05-11 18:48:13 +00:00
property-dbg.m stop looking for #uses comments. 2010-09-02 22:48:26 +00:00
property-getter-dot-syntax.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
property-incr-decr-1.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
property-list-in-class.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
property-ref-cast-to-void.m Casting of a property reference to 'void' did not 2010-09-04 19:49:18 +00:00
property-setter-attr.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
property-type-mismatch.m Revert r126678. 2011-02-28 21:19:34 +00:00
property.m Revert r126678. 2011-02-28 21:19:34 +00:00
protocol-in-extended-class.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
protocol-property-synth.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
protocols-lazy.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
protocols.m Correctly generate IR for ObjC messages sends to protocol-qualified types. 2010-05-17 20:12:43 +00:00
rdr-6732143-dangling-block-reference.m Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. 2011-02-22 01:52:06 +00:00
related-result-type.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
return-objc-object.mm IRGen support for functions returning objc object 2010-08-11 17:37:35 +00:00
runtime-fns.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
sel-as-builtin-type.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
simplify-exceptions.mm IRgen/Darwin: Fix refacto introduced in Triple changes. 2011-04-26 19:43:00 +00:00
stand-alone-implementation.m Patch removes IVars list from ObjCInterfaceDecl and 2010-02-19 00:31:17 +00:00
super-classmethod-category.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
super-dotsyntax-property.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
super-dotsyntax-struct-property.m Return type of a setter call caused by 2010-07-24 00:34:08 +00:00
super-message-fragileabi.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
synchronized.m Some more correctness fixes and code-size optimizations for fragile-ABI 2010-08-04 05:59:32 +00:00
synthesize_ivar-cont-class.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
synthesize_ivar.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
try.m These tests require particular registered targets. Declared as such. 2011-06-03 22:24:54 +00:00
undefined-protocol.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
unname-bf-metadata.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
variadic-sends.m Revert r126678. 2011-02-28 21:19:34 +00:00
x86_64-struct-return-gc.m now that we have CGT around, we can start using preferred types 2010-07-29 04:46:19 +00:00