Daniel Dunbar | 74d4b12 | 2009-05-15 22:33:15 +0000 | [diff] [blame] | 1 | // RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s && |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CLASS_$" = internal global \[1 x .*\] .*@"OBJC_CLASS_$_A".*, section "__DATA, __objc_nlclslist, regular, no_dead_strip", align 8' %t |
| 4 | // RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CATEGORY_$" = internal global \[1 x .*\] .*@".01l_OBJC_$_CATEGORY_A_$_Cat".*, section "__DATA, __objc_nlcatlist, regular, no_dead_strip", align 8' %t |
Daniel Dunbar | 74d4b12 | 2009-05-15 22:33:15 +0000 | [diff] [blame] | 5 | |
| 6 | @interface A @end |
| 7 | @implementation A |
| 8 | +(void) load { |
| 9 | } |
| 10 | @end |
| 11 | |
| 12 | @interface A (Cat) @end |
| 13 | @implementation A (Cat) |
| 14 | +(void) load { |
| 15 | } |
| 16 | @end |
| 17 | |
| 18 | @interface B @end |
| 19 | @implementation B |
| 20 | -(void) load { |
| 21 | } |
| 22 | @end |
| 23 | |
| 24 | @interface B (Cat) @end |
| 25 | @implementation B (Cat) |
| 26 | -(void) load { |
| 27 | } |
| 28 | @end |
| 29 | |
Daniel Dunbar | 85a3b03 | 2009-05-18 16:49:49 +0000 | [diff] [blame] | 30 | @interface C : A @end |
| 31 | @implementation C |
| 32 | @end |