xref: /aosp_15_r20/external/llvm/test/Feature/weirdnames.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis > %t1.ll
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3*9880d681SAndroid Build Coastguard Worker; RUN: diff %t1.ll %t2.ll
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; Test using double quotes to form names that are not legal in the % form
6*9880d681SAndroid Build Coastguard Worker%"&^ " = type { i32 }
7*9880d681SAndroid Build Coastguard Worker@"%.*+ foo" = global %"&^ " { i32 5 }
8*9880d681SAndroid Build Coastguard Worker@"0" = global float 0.000000e+00                ; This CANNOT be %0
9*9880d681SAndroid Build Coastguard Worker@"\\03foo" = global float 0x3FB99999A0000000    ; Make sure funny char gets round trip
10