18 lines · plain
1// REQUIRES: x86-registered-target2 3/// See test/CodeGenObjC/constant-strings.m4/// Test that we let the APValue we create for ObjCStringLiterals point to the right expression.5 6// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -o %t %s -fexperimental-new-constant-interpreter7// RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s8 9// Check that we set alignment 1 on the string.10//11// CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 112id a = @"Hello World!";13 14extern void OBJC_CLASS_$_f;15Class c = (Class)&OBJC_CLASS_$_f;16// CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"17// CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t18