| Daniel Dunbar | a45cf5b | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm -o - -fwritable-strings %s |
| Oliver Hunt | a951571 | 2007-11-28 06:27:12 +0000 | [diff] [blame] | 2 | |
| 3 | int main() { | ||||
| 4 | char *str = "abc"; | ||||
| 5 | str[0] = '1'; | ||||
| 6 | printf("%s", str); | ||||
| 7 | } | ||||
| 8 | |||||