summaryrefslogtreecommitdiffstats
path: root/clang/test/Coverage/objc-language-features.inc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-04 23:47:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-04 23:47:28 +0000
commit83f705ac20e713b9e76727c894e8620123b815c0 (patch)
tree8032624661c35a2a9d282be77fe02b0f605f8f16 /clang/test/Coverage/objc-language-features.inc
parente773d5ff168078bc9089e34f76edf94cc2a33ed2 (diff)
downloadbcm5719-llvm-83f705ac20e713b9e76727c894e8620123b815c0.tar.gz
bcm5719-llvm-83f705ac20e713b9e76727c894e8620123b815c0.zip
Add coverage tests of C and Obj-C language features.
- AST printing, dumping, serialization, codegen. - HTML printing. - Parser callbacks. Several of these are XFAIL because they trigger unimplemented code. llvm-svn: 57081
Diffstat (limited to 'clang/test/Coverage/objc-language-features.inc')
-rw-r--r--clang/test/Coverage/objc-language-features.inc69
1 files changed, 69 insertions, 0 deletions
diff --git a/clang/test/Coverage/objc-language-features.inc b/clang/test/Coverage/objc-language-features.inc
new file mode 100644
index 00000000000..d341032b82f
--- /dev/null
+++ b/clang/test/Coverage/objc-language-features.inc
@@ -0,0 +1,69 @@
+//-*- ObjC -*-
+
+@protocol P0;
+
+@protocol P1
+-(void) fm0;
+@end
+
+@class B;
+
+@interface Root
+@end
+
+@interface A : Root <P1> {
+ int iv0;
+ B *iv1;
+}
+
+@property(assign,readonly) int p0;
+@property(assign,nonatomic,readwrite) int p1;
+@property(copy) id p2;
+@property(retain) id p3;
+@property(assign, getter=getme, setter=setme:) id p4;
+@end
+
+@implementation A
+@dynamic p0;
+@synthesize p1 = iv0;
++(void) fm0 {
+ [super fm0];
+}
+-(void) im0 {
+ [super im0];
+}
+-(void) im1: (int) x, ... {
+}
+@end
+
+@implementation C : A
+@end
+
+#if 0
+@interface A (Cat)
+@end
+
+@implementation A (Cat)
+@end
+#endif
+
+int f0(id x) {
+ @synchronized(x) {
+ }
+
+ @try {
+ @throw x;
+ } @catch(A *e) {
+ @throw;
+ } @finally {
+ ;
+ }
+
+ for (id y in x) {
+ break;
+ }
+}
+
+struct s0 {
+ @defs(A);
+};
OpenPOWER on IntegriCloud