[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / writable-strings.c
blob89d012bcae72cec165bc5e82baa5c282a0295394
1 // RUN: %clang_cc1 -emit-llvm -o - -fwritable-strings %s
3 int printf(const char *, ...);
4 int main(void) {
5 char *str = "abc";
6 str[0] = '1';
7 printf("%s", str);