diff --git a/test/CFrontend/2004-02-13-StringInit.c.tr b/test/CFrontend/2004-02-13-StringInit.c.tr new file mode 100644 index 00000000000..6953fd5aea3 --- /dev/null +++ b/test/CFrontend/2004-02-13-StringInit.c.tr @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset + +char test(int X) { + char str[10000] = "abc"; // tail should be memset. + return str[X]; +} +