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

9 lines
138 B
C

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