| Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - -fwritable-strings %s |
| Oliver Hunt | 01acb91 | 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 | |||||