xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/private-2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; Quote should be outside of private prefix.
3*9880d681SAndroid Build Coastguard Worker; rdar://6855766x
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; CHECK: "l__ZZ20-[Example1 whatever]E4C.91"
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker	%struct.A = type { i32*, i32 }
8*9880d681SAndroid Build Coastguard Worker@"_ZZ20-[Example1 whatever]E4C.91" = private constant %struct.A { i32* null, i32 1 }		; <%struct.A*> [#uses=1]
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdefine internal i32* @"\01-[Example1 whatever]"() nounwind optsize ssp {
11*9880d681SAndroid Build Coastguard Workerentry:
12*9880d681SAndroid Build Coastguard Worker	%0 = getelementptr %struct.A, %struct.A* @"_ZZ20-[Example1 whatever]E4C.91", i64 0, i32 0		; <i32**> [#uses=1]
13*9880d681SAndroid Build Coastguard Worker	%1 = load i32*, i32** %0, align 8		; <i32*> [#uses=1]
14*9880d681SAndroid Build Coastguard Worker	ret i32* %1
15*9880d681SAndroid Build Coastguard Worker}
16