OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [image-info.m] - Blame information for rev 313

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Check if the '-freplace-objc-classes' option causes the
2
   __OBJC,__image_info section to be emitted.  This is only
3
   usable on MacOS X 10.3 and later. */
4
/* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
5
 
6
/* { dg-do compile { target { *-*-darwin* } } } */
7
/* { dg-options "-freplace-objc-classes" } */
8
 
9
#include "../objc-obj-c++-shared/Object1.h"
10
#include <objc/objc.h>
11
 
12
extern void abort(void);
13
 
14
#define CHECK_IF(expr) if(!(expr)) abort();
15
 
16
@interface Base: Object {
17
@public
18
  int a;
19
  float b;
20
  char c;
21
}
22
- init;
23
@end
24
 
25
@implementation Base
26
- init {
27
  [super init];
28
  a = 123;
29
  b = 1.23;
30
  c = 'c';
31
  return self;
32
}
33
@end
34
 
35
/* { dg-final { scan-assembler "\t.section __OBJC, __image_info.*\n\t.align.*\nL_OBJC_IMAGE_INFO.*:\n\t.long\t0\n\t.long\t1" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.