llvm-project/clang/test/CodeGen/writable-strings.c

9 lines
128 B
C

// RUN: clang -emit-llvm -fwritable-strings %s
int main() {
char *str = "abc";
str[0] = '1';
printf("%s", str);
}