1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - -std=c++11 %s | FileCheck %s 2 3// CHECK: %[[TYPE:[a-z0-9]+]] = type opaque 4// CHECK: @[[CFSTRING:[a-z0-9_]+]] = private global %struct.__NSConstantString_tag 5 6// CHECK: define void @_Z5test1v 7// CHECK: %[[ALLOCA:[A-Z]+]] = alloca %[[TYPE]]* 8// CHECK: %[[V0:[0-9]+]] = call i8* @objc_retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]] 9// CHECK: %[[V1:[0-9]+]] = bitcast i8* %[[V0]] to %[[TYPE]]* 10// CHECK: store %[[TYPE]]* %[[V1]], %[[TYPE]]** %[[ALLOCA]] 11// CHECK: %[[V2:[0-9]+]] = bitcast %[[TYPE]]** %[[ALLOCA]] 12// CHECK: call void @objc_storeStrong(i8** %[[V2]], i8* null) 13 14@class NSString; 15 16void test1() { 17 constexpr NSString *S = @"abc"; 18} 19