minix/external/bsd/llvm/dist/clang/test/CodeGen/writable-strings.c

9 lines
138 B
C
Raw Normal View History

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