llvm-for-llvmta/tools/clang/test/CodeGen/shared-string-literals.c

10 lines
185 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm %s -o %t
char *globalString = "abc";
char *globalStringArray[5] = { "123", "abc" };
char *anotherGlobalString = "123";
int main() {
printf("123");
}