1 | // RUN: %clang -cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -emit-llvm -o - %s -Wno-objc-root-class | FileCheck %s |
2 | |
3 | @protocol P |
4 | - (void) method; |
5 | @end |
6 | |
7 | @protocol Q @end |
8 | @protocol R @end |
9 | |
10 | @interface I<P> |
11 | @end |
12 | |
13 | @implementation I |
14 | - (void) method { } |
15 | @end |
16 | |
17 | _Bool f(void) { |
18 | return @protocol(Q) == @protocol(R); |
19 | } |
20 | |
21 | // CHECK: $"_OBJC_PROTOCOL_$_P" = comdat any |
22 | // CHECK: $"_OBJC_LABEL_PROTOCOL_$_P" = comdat any |
23 | // CHECK: $"\01l_OBJC_PROTOCOL_REFERENCE_$_Q" = comdat any |
24 | // CHECK: $"\01l_OBJC_PROTOCOL_REFERENCE_$_R" = comdat any |
25 | |
26 | // CHECK: @"_OBJC_PROTOCOL_$_P" = {{.*}}, comdat |
27 | // CHECK: @"_OBJC_LABEL_PROTOCOL_$_P" = {{.*}}, comdat |
28 | |
29 | |