YouCompleteMe/cpp/llvm/tools/clang/test/CodeGen/writable-strings.c
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

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);
}