[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / constant-string-class-1.m
blob5f1e882d0d2e76a17956c3409fcb5cceab4cf5d6
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fno-constant-cfstrings -fconstant-string-class OFConstantString  -emit-llvm -o %t %s
2 // pr9914
4 @interface OFConstantString 
5 + class;
6 @end
8 @interface OFString
9 - (void)XMLElementBySerializing;
10 @end
12 @implementation OFString
14 - (void)XMLElementBySerializing
16  id str = @"object";
18  [OFConstantString class];
21 @end
23 // CHECK: @"OBJC_CLASS_$_OFConstantString" = external global