1 /* Check that the '-fzero-link' flag doesn't prevent messaging from working. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com>. */
3 /* { dg-options "-fnext-runtime -fzero-link -lobjc" } */
4 /* { dg-do run { target *-*-darwin* } } */
7 #import <objc/Object.h>
9 extern void abort(void);
10 #define CHECK_IF(expr) if(!(expr)) abort();
12 @interface Base: Object
17 + (int) getValue { return 1593; }
21 int val = [Base getValue];
22 CHECK_IF(val == 1593);