llvm-for-llvmta/tools/clang/test/CodeGen/writable-strings.c

9 lines
138 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -o - -fwritable-strings %s
int main() {
char *str = "abc";
str[0] = '1';
printf("%s", str);
}