llvm-project/clang/test/CodeGenObjC/constant-string-class-1.m
Fady Farag 6ddb2be00a
[clang][test] Add missing FileCheck pipe in constant-string-class-1.m (#189514)
The test had a CHECK directive that was never executed because the RUN
line did not pipe output to FileCheck.
2026-03-31 07:42:05 -04:00

24 lines
442 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fno-constant-cfstrings -fconstant-string-class OFConstantString -emit-llvm -o - %s | FileCheck %s
// pr9914
@interface OFConstantString
+ class;
@end
@interface OFString
- (void)XMLElementBySerializing;
@end
@implementation OFString
- (void)XMLElementBySerializing
{
id str = @"object";
[OFConstantString class];
}
@end
// CHECK: @"OBJC_CLASS_$_OFConstantString" = external global