clang-1/test/CodeGen/writable-strings.c

9 строки
136 B
C

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